D
D
dk-web2015-10-12 01:20:59
PHP
dk-web, 2015-10-12 01:20:59

Does it make sense to leave files in Cyrillic when uploading to the server?

I apparently decided to collect everything ... I
screwed Jquery File Upload - everything seems to be fine, but it writes Cyrillic files with krakozyabrs ...
I didn’t find the recipe right away (I’m in regular boots boots, but I think somewhere here
return preg_replace_callback(
'/(?: (?: \(([\d]+)\))?(\.[^.]+))?$/',
array($this, 'upcount_name_callback'),
$name,
1
Share
? advantages of saving files in Cyrillic or do transliteration?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Evgrafovich, 2015-10-12
@Tantacula

It depends on the task, do you need file names in Cyrillic at all? In general, if a lot of files are expected, it is better to replace their name with a hash and put it in a folder with the name of the first two characters of the hash, store the names themselves in the table with a hash, but again, it depends on the task. You can use transliteration (and remove all invalid characters too). In any case, the Cyrillic file names are another hemorrhoid, problems with them either pop up via FTP, or when uploading with third-party applouders, or when working through php.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question