goldsky / FileDownload-R

FileDownload snippet for MODX revolution
12 stars 7 forks source link

Russian text problem #33

Closed TITAN-UZ closed 8 years ago

TITAN-UZ commented 10 years ago

Hi!

How to fix russian text!

Set locale UTF8 does not help

goldsky commented 9 years ago

will this work for you? https://github.com/goldsky/FileDownload-R/issues/8

TITAN-UZ commented 9 years ago

Not only I have a problem with it.

zverbeta commented 9 years ago

One option, need replace in filedownload.class.php on line 973 replace it utf8_encode($baseName) at this (preg_match('!!u', $baseName)) ? $baseName : utf8_encode($baseName)

goldsky commented 9 years ago

What is !!u ?

zverbeta commented 9 years ago

This is trick check utf-8

from doc.

"This modifier turns on additional functionality of PCRE that is incompatible with Perl. Pattern and subject strings are treated as UTF-8."

SylarRaven commented 9 years ago

I have this problem with chinese text, One option, need replace in filedownload.class.php on line 973 replace it utf8_encode($baseName) at this (preg_match('!!u', $baseName)) ? $baseName : utf8_encode($baseName) not work for me

goldsky commented 8 years ago

filedownload internationalizaetion