WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Chinese or Unicode Filenames with mount.cifs or ntfs-3g  (Read 5568 times)

Offline whoisterence

  • Newbie
  • *
  • Posts: 27
Chinese or Unicode Filenames with mount.cifs or ntfs-3g
« on: January 18, 2011, 07:01:02 AM »
I am able to read Chinese in Firefox, so I should have fonts setup properly.

I have tried the rxvt-unicode terminal extension, but even if I use rxvtc -fn xft:MingLiU, the chinese filenames on my network (mounted using cifs) or local (mounted using ntfs-3g) still show up as ??? question marks?

I tried mount.cifs with iocharset=unicode option.

Offline Syun

  • Newbie
  • *
  • Posts: 17
Re: Chinese or Unicode Filenames with mount.cifs or ntfs-3g
« Reply #1 on: January 18, 2011, 10:29:32 AM »
Hi.
I'm Japanese. So I don't know Chinese environment.
I think that you need to build kernel modules for supports native language.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11043
Re: Chinese or Unicode Filenames with mount.cifs or ntfs-3g
« Reply #2 on: January 18, 2011, 11:40:19 AM »
CONFIG_NLS_UTF8=y

Unicode is supported.
The only barriers that can stop you are the ones you create yourself.

Offline whoisterence

  • Newbie
  • *
  • Posts: 27
Re: Chinese or Unicode Filenames with mount.cifs or ntfs-3g
« Reply #3 on: January 18, 2011, 11:08:02 PM »
Syun, can you get Japanese filenames?

New things I tried.

-recompiled urxvt with ./configure --enable-everything --enable-xft
I think the current urxvt extension didn't include many encodings.

-set the locale LANG=zh_TW.utf8
-run using urxvt -fn "xft:MingLiu"

I created a utf8 encoded text file and now I can see the Chinese characters in the file, but when I do "ls" still showing question marks.

Also, when I do an "ls" I get the following messages:
ls: ./???????.doc: No such file or directory

Seems to me "ls" is not UTF8 ready?  Maybe it's the way busybox was compiled?

Offline whoisterence

  • Newbie
  • *
  • Posts: 27
Re: Chinese or Unicode Filenames with mount.cifs or ntfs-3g
« Reply #4 on: January 18, 2011, 11:34:43 PM »
I used "echo *" instead of "ls" and I can see the Chinese filenames, this is narrowing the problem down to busybox ls.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Chinese or Unicode Filenames with mount.cifs or ntfs-3g
« Reply #5 on: January 19, 2011, 12:18:09 AM »
I used "echo *" instead of "ls" and I can see the Chinese filenames, this is narrowing the problem down to busybox ls.

GNU ls is in coreutils.tcz   ;)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline whoisterence

  • Newbie
  • *
  • Posts: 27
Re: Chinese or Unicode Filenames with mount.cifs or ntfs-3g
« Reply #6 on: January 19, 2011, 03:52:40 AM »
Yup that did the trick.

In summary to be able to list Chinese filenames

-have a Chinese font installed
-mount your cifs/ntfs-3g drives
-use the urxvt-daemon extension is OK.  No need to recompile urxvt
-need the coreutils extension, because busybox ls does not show UTF8
-set the LANG=en_US.utf8
-run urxvtd
-run urxvtc -fn "xft:mingliu"
-ls and you should see Chinese filenames