Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Adding unicode support in Linux
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Adding unicode support in Linux

JunJun Member
edited October 2012 in General

I have a server which needs to handle various file names including cjk.
However, whenever I list the file name, unicode file names are not listed correctly.
I just see whole bunch of ??? instead of the original characters.
I first thought it has something to do with OS system locale,
but when I created and logged in as a new account, it handles unicode file names with no problem.
So now, I think there is a problem maybe in bash configuration.
I tried to google around this problem but could not solve it.
Any help?

Comments

  • It's your locale set to a non.utf-8 one, nothing else.

    Run a locale -a on the account where you're seeing these issues, what do you see?

  • JunJun Member

    Thank you.
    Here is what I get from locale -a
    I don't know how to use codeblock in this forum...

    C
    C.UTF-8
    POSIX
    en_AG
    en_AG.utf8
    en_AU.utf8
    en_BW.utf8
    en_CA.utf8
    en_DK.utf8
    en_GB.utf8
    en_HK.utf8
    en_IE.utf8
    en_IN
    en_IN.utf8
    en_NG
    en_NG.utf8
    en_NZ.utf8
    en_PH.utf8
    en_SG.utf8
    en_US.utf8
    en_ZA.utf8
    en_ZM
    en_ZM.utf8
    en_ZW.utf8`

    It prints the same value for both the account that doesn't support unicode and does :(

  • fanfan Veteran

    To solve the problem with CJK characters, either apt-get install locales-all or run dpkg-reconfigure locales to manually generate the required locales.

Sign In or Register to comment.