goldsky/FileDownload-R

Russian text problem

TITAN-UZ opened this issue · 7 comments

Hi!

How to fix russian text!

Set locale UTF8 does not help

will this work for you?
#8

Not only I have a problem with it.

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)

What is !!u ?

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."

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