Viewing 15 replies - 16 through 30 (of 35 total)
  • Thread Starter moonkir

    (@moonkir)

    install plugin CyrtoLat
    <?php echo get_the_title();?> change to <?php echo the_slug(); ?>
    in file theme function.php add this:

    function the_slug() {
        $post_data = get_post($post->ID, ARRAY_A);
        $slug = $post_data['post_name'];
        return $slug;
    }

    its work!
    but files name Р?Р?Р?РёР?РёС?С?С?РёС?Р?Р?Р°Р?РёРμ базС? в?” Р?Р?Р?РёС?.doc

    Plugin Author lynton_reed

    (@lynton_reed)

    that’s good.

    note that it will only work if the directory name is a legal directory name.

    Also note that if your server is on windows you may have unicode issues with international characters, on linux servers international characters will behave better.

    Thread Starter moonkir

    (@moonkir)

    How to be named upload files?
    Cyr2Lat plugin converts name only when upload via mediafiles

    Plugin Author lynton_reed

    (@lynton_reed)

    The filenames are whatever the file you drop on the upload page is already named.

    If you need to change the filenames you will have to write your own function to do that. If you use a workflow process then you could hook your renaming function into a post hook to run after an upload stage has completed, look at the demo workflow if you want to try that.

    Thread Starter moonkir

    (@moonkir)

    In other words, Work The Flow File Upload not support file names Cyrillic ??

    very sorry that I spent outside your time plugin is really good, if not the last: (

    Plugin Author lynton_reed

    (@lynton_reed)

    It has nothing to do with the Work The Flow File Upload plugin but with the OS that your system is running on.

    What I was saying is that if you are on windows then try it on a linux server as linux has proper unicode support unlike windows.

    So if the Cyrillic filenames are mangled after uploading, and you are using windows, then try it on a linux host.

    Linux has full unicode support so Cyrillic should be fine to use in file names.

    Plugin Author lynton_reed

    (@lynton_reed)

    It’s complicated but you can read more about this problem here.
    https://bugs.php.net/bug.php?id=47096

    The good news is that on a linux web host your filenames should be ok,
    so if you are developing on windows (where filenames are mangled) then deploy to a linux web host then it will work.

    Hope that helps.

    Thread Starter moonkir

    (@moonkir)

    Thread Starter moonkir

    (@moonkir)

    Plugin Author lynton_reed

    (@lynton_reed)

    If you must run your server on a windows host then you can investigate this sort of thing,
    But your easiest solution is just to deploy to a unix based host.

    Thread Starter moonkir

    (@moonkir)

    I must using windows host

    before saving the file you want to apply the code converts the encoding

    $ filenameFileLocal = iconv ("UTF-8", "WINDOWS-1251", $ filenameFile);

    please tell me the name of the file name variable and insert the code where

    Plugin Author lynton_reed

    (@lynton_reed)

    sorry, you will have to investigate that yourself.

    Thread Starter moonkir

    (@moonkir)

    very bad ?? russian not support THIS plugin

    Thread Starter moonkir

    (@moonkir)

    I add $name = iconv ("UTF-8", "WINDOWS-1251", $name);
    to string 500 \work-the-flow-file-upload\public\includes\UploadHandler.php

    file save to Cyrillic

    Plugin Author lynton_reed

    (@lynton_reed)

    This is not an issue with this plugin but with php on windows OS.

    The same problem will occur with any sort of php based file upload on windows servers.

    Sorry but there is nothing I can do about this. I believe that PHP 6 will provide full unicode support when it comes out and that will solve this problem.

    For now you have to use a linux host or implement your own encoding logic on windows. It is a very complex issue so I don’t recommend that unless you have sound knowledge in this area.

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