[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: |
Fri, 31 Jul 2009 19:46:02 +0800 |
Thanks for your help and patient, first.
(tramp-version nil)
"2.1.17-pre"
(emacs-version)
"GNU Emacs 23.1.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.16.4)
of 2009-07-05 on debian"
[~] locale
LANG=en_US.UTF-8
LC_CTYPE=zh_CN.utf8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
configuration in .emacs
---------------------------------
;; tramp
(require 'tramp)
(setq password-cache nil
tramp-default-method "su"
tramp-default-user "root"
tramp-default-host "debian")
(add-to-list 'backup-directory-alist (cons tramp-file-name-regexp nil))
---------------------------------
In tramp mode, when I create a direcotry named 你好, it displays
'??????', this is the describe-char's output:
--------------------------------------
character: ? (63, #o77, #x3f)
preferred charset: ascii (ASCII (ISO646 IRV))
code point: 0x3F
syntax: . which means: punctuation
category: .:Base, a:ASCII, l:Latin, r:Roman
buffer code: #x3F
file code: #x3F (encoded by coding system utf-8)
display: by this font (glyph code)
xft:-bitstream-Courier 10
Pitch-bold-normal-normal-*-17-*-*-*-m-0-iso10646-1 (#x20)
Character code properties: customize what to show
name: QUESTION MARK
general-category: Po (Punctuation, Other)
There are text properties here:
dired-filename t
face dired-directory
fontified t
help-echo "mouse-2: visit this file in other window"
mouse-face highlight
[back]
-------------------------------------
On 7/30/09, Michael Albinus <michael.albinus@gmx.de> wrote:
> Wang Lei <wanglei.198112@gmail.com> writes:
>
>> I'v tried it, doesn't work.
>> Any other advices?
>
> Hmm, hard for me, I don't use Chinese at all.
>
> Which Emacs/Tramp versions are you using? And do you have an example
> file I could use for testing? Please tell me also, which coding system I
> shall use.
>
> Best regards, Michael.
>
--
Regards
Lei