[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Chinese in tramp become ????s
From: |
Wang Lei |
Subject: |
Re: Chinese in tramp become ????s |
Date: |
Mon, 3 Aug 2009 21:31:20 +0800 |
Yes! It works.
This problem is my headache for a long time. Finally, it's solved.
Thanks, Michael! Thanks you all!
On 8/3/09, Michael Albinus <michael.albinus@gmx.de> wrote:
> Wang Lei <wanglei.198112@gmail.com> writes:
>
>>>> In tramp mode, when I create a direcotry named 你好, it displays
>>>> '??????', this is the describe-char's output:
>>>
>>> Same here. However, if I open /ssh:host:/path/你好/ I can continue to
>>> work. So it seems to be a problem of /bin/ls
>>>
>> Then. Maybe it's a su's problem?
>
> It's an environment problem. Tramp sets LC_ALL to "C". You should do the
> following, before connecting via "su":
>
> (add-to-list 'tramp-remote-process-environment "LANG=zh_CN.utf8" 'append)
> (add-to-list 'tramp-remote-process-environment "LC_ALL=zh_CN.utf8" 'append)
>
> Best regards, Michael.
>
--
Regards
Lei