Viewing 5 replies - 31 through 35 (of 35 total)
  • Plugin Author lynton_reed

    (@lynton_reed)

    >> iconv (“UTF-8”, “WINDOWS-1251”, $name);

    This “might” work for you if you can safely assume that all uploaded files are coming from a windows machine that has its locale set to Cyrillic. I suspect this will cause problems though if that is not the case.

    But if it works for your requirements then that’s great news.

    Thread Starter moonkir

    (@moonkir)

    File in cyrilic name upload – but not view in download

    Thread Starter moonkir

    (@moonkir)

    Hi
    I changed the hosting from windows to linux
    Loading Cyrillic names works fine
    But cuts the file name in different places

    Thread Starter moonkir

    (@moonkir)

    Hm, Cuts the words that have the letter in uppercase

    Thread Starter moonkir

    (@moonkir)

    There is two solutions (maybe more:) )
    1. https://olegon.ru/showthread.php?t=10580 (Russian) with code;
    2. Add to functions.php in your theme:
    setlocale(LC_ALL, ‘ru_RU.UTF-8’);

Viewing 5 replies - 31 through 35 (of 35 total)
  • The topic ‘Edit view upload file’ is closed to new replies.