Hebrew (Unicode) file-name support on CentOs 7












0















I have a VPS with CentOS 7 installed.
I am trying to upload to the server a file that has a Hebrew name.
I tried to upload it via FTP (Pure-ftpd) and I get: Failed to convert command to 8 bit charset.
I tried to upload it via a php-upload-page and it transfer the file without any name (for example, if the name of the file was שלום.jpg, it will be saved on the server as .jpg.
I've already tried to change the locale to en_US.utf8 and he_IL.utf8, but it still not working.



Does anyone know what to do?



EDIT:
The problem was in the FTP server (Pure-ftpd). I've uninstalled it and installed ProFtp instead and it works just fine now.










share|improve this question





























    0















    I have a VPS with CentOS 7 installed.
    I am trying to upload to the server a file that has a Hebrew name.
    I tried to upload it via FTP (Pure-ftpd) and I get: Failed to convert command to 8 bit charset.
    I tried to upload it via a php-upload-page and it transfer the file without any name (for example, if the name of the file was שלום.jpg, it will be saved on the server as .jpg.
    I've already tried to change the locale to en_US.utf8 and he_IL.utf8, but it still not working.



    Does anyone know what to do?



    EDIT:
    The problem was in the FTP server (Pure-ftpd). I've uninstalled it and installed ProFtp instead and it works just fine now.










    share|improve this question



























      0












      0








      0








      I have a VPS with CentOS 7 installed.
      I am trying to upload to the server a file that has a Hebrew name.
      I tried to upload it via FTP (Pure-ftpd) and I get: Failed to convert command to 8 bit charset.
      I tried to upload it via a php-upload-page and it transfer the file without any name (for example, if the name of the file was שלום.jpg, it will be saved on the server as .jpg.
      I've already tried to change the locale to en_US.utf8 and he_IL.utf8, but it still not working.



      Does anyone know what to do?



      EDIT:
      The problem was in the FTP server (Pure-ftpd). I've uninstalled it and installed ProFtp instead and it works just fine now.










      share|improve this question
















      I have a VPS with CentOS 7 installed.
      I am trying to upload to the server a file that has a Hebrew name.
      I tried to upload it via FTP (Pure-ftpd) and I get: Failed to convert command to 8 bit charset.
      I tried to upload it via a php-upload-page and it transfer the file without any name (for example, if the name of the file was שלום.jpg, it will be saved on the server as .jpg.
      I've already tried to change the locale to en_US.utf8 and he_IL.utf8, but it still not working.



      Does anyone know what to do?



      EDIT:
      The problem was in the FTP server (Pure-ftpd). I've uninstalled it and installed ProFtp instead and it works just fine now.







      centos files filenames unicode






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 29 at 15:42







      Matan Kintzlinger

















      asked Jan 28 at 19:08









      Matan KintzlingerMatan Kintzlinger

      11




      11






















          1 Answer
          1






          active

          oldest

          votes


















          0














          How did you make use of en_US.utf8/he_IL.utf8?



          You have to pay attention to two things here:




          1. FTP Server


          The FTP server is run by a user. You have to make sure it has:
          LANG=en_US.utf8 or LANG=he_IL.utf8 defined in its environment variable when run.



          You can check it by executing




          grep -aPo 'LANG=[^=]+' /proc/{pid}/environ



          where {pid} is the process id of the FTP server (you might be root to execute this command).



          In Linux, it is usually a requirement that this variable is defined in the context of an executable in order for it to support I18n.



          If it is not properly defined, then you have several choices:



          a. modify the .bashrc of the user assigned to this FTP server:




          export LANG=en_US.utf8



          and restart the system.



          b. More direct, add this environment variable definition directly inside the starting script of FTP server




          export LANG=en_US.utf8




          1. FTP Client


          The FTP client should also have this LANG environment variable properly set when uploading file in order to properly encode the names.



          You can just execute:




          export LANG=en_US.utf8



          before calling the FTP client on command line for example.



          If both client and server are properly configured as described above, and if the application you are using (in your case ftp server and client) supports I18n then there is a big chance that it will work.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f497274%2fhebrew-unicode-file-name-support-on-centos-7%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            How did you make use of en_US.utf8/he_IL.utf8?



            You have to pay attention to two things here:




            1. FTP Server


            The FTP server is run by a user. You have to make sure it has:
            LANG=en_US.utf8 or LANG=he_IL.utf8 defined in its environment variable when run.



            You can check it by executing




            grep -aPo 'LANG=[^=]+' /proc/{pid}/environ



            where {pid} is the process id of the FTP server (you might be root to execute this command).



            In Linux, it is usually a requirement that this variable is defined in the context of an executable in order for it to support I18n.



            If it is not properly defined, then you have several choices:



            a. modify the .bashrc of the user assigned to this FTP server:




            export LANG=en_US.utf8



            and restart the system.



            b. More direct, add this environment variable definition directly inside the starting script of FTP server




            export LANG=en_US.utf8




            1. FTP Client


            The FTP client should also have this LANG environment variable properly set when uploading file in order to properly encode the names.



            You can just execute:




            export LANG=en_US.utf8



            before calling the FTP client on command line for example.



            If both client and server are properly configured as described above, and if the application you are using (in your case ftp server and client) supports I18n then there is a big chance that it will work.






            share|improve this answer




























              0














              How did you make use of en_US.utf8/he_IL.utf8?



              You have to pay attention to two things here:




              1. FTP Server


              The FTP server is run by a user. You have to make sure it has:
              LANG=en_US.utf8 or LANG=he_IL.utf8 defined in its environment variable when run.



              You can check it by executing




              grep -aPo 'LANG=[^=]+' /proc/{pid}/environ



              where {pid} is the process id of the FTP server (you might be root to execute this command).



              In Linux, it is usually a requirement that this variable is defined in the context of an executable in order for it to support I18n.



              If it is not properly defined, then you have several choices:



              a. modify the .bashrc of the user assigned to this FTP server:




              export LANG=en_US.utf8



              and restart the system.



              b. More direct, add this environment variable definition directly inside the starting script of FTP server




              export LANG=en_US.utf8




              1. FTP Client


              The FTP client should also have this LANG environment variable properly set when uploading file in order to properly encode the names.



              You can just execute:




              export LANG=en_US.utf8



              before calling the FTP client on command line for example.



              If both client and server are properly configured as described above, and if the application you are using (in your case ftp server and client) supports I18n then there is a big chance that it will work.






              share|improve this answer


























                0












                0








                0







                How did you make use of en_US.utf8/he_IL.utf8?



                You have to pay attention to two things here:




                1. FTP Server


                The FTP server is run by a user. You have to make sure it has:
                LANG=en_US.utf8 or LANG=he_IL.utf8 defined in its environment variable when run.



                You can check it by executing




                grep -aPo 'LANG=[^=]+' /proc/{pid}/environ



                where {pid} is the process id of the FTP server (you might be root to execute this command).



                In Linux, it is usually a requirement that this variable is defined in the context of an executable in order for it to support I18n.



                If it is not properly defined, then you have several choices:



                a. modify the .bashrc of the user assigned to this FTP server:




                export LANG=en_US.utf8



                and restart the system.



                b. More direct, add this environment variable definition directly inside the starting script of FTP server




                export LANG=en_US.utf8




                1. FTP Client


                The FTP client should also have this LANG environment variable properly set when uploading file in order to properly encode the names.



                You can just execute:




                export LANG=en_US.utf8



                before calling the FTP client on command line for example.



                If both client and server are properly configured as described above, and if the application you are using (in your case ftp server and client) supports I18n then there is a big chance that it will work.






                share|improve this answer













                How did you make use of en_US.utf8/he_IL.utf8?



                You have to pay attention to two things here:




                1. FTP Server


                The FTP server is run by a user. You have to make sure it has:
                LANG=en_US.utf8 or LANG=he_IL.utf8 defined in its environment variable when run.



                You can check it by executing




                grep -aPo 'LANG=[^=]+' /proc/{pid}/environ



                where {pid} is the process id of the FTP server (you might be root to execute this command).



                In Linux, it is usually a requirement that this variable is defined in the context of an executable in order for it to support I18n.



                If it is not properly defined, then you have several choices:



                a. modify the .bashrc of the user assigned to this FTP server:




                export LANG=en_US.utf8



                and restart the system.



                b. More direct, add this environment variable definition directly inside the starting script of FTP server




                export LANG=en_US.utf8




                1. FTP Client


                The FTP client should also have this LANG environment variable properly set when uploading file in order to properly encode the names.



                You can just execute:




                export LANG=en_US.utf8



                before calling the FTP client on command line for example.



                If both client and server are properly configured as described above, and if the application you are using (in your case ftp server and client) supports I18n then there is a big chance that it will work.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 28 at 19:39









                Raffi SemerciyanRaffi Semerciyan

                113




                113






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f497274%2fhebrew-unicode-file-name-support-on-centos-7%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

                    is 'sed' thread safe

                    How to make a Squid Proxy server?