Jungshik,

Thanks for all the tips. My comments are below.

Thanks,
Jim


From: Jungshik Shin <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Why doesn't Linux display Japanese file names encoded in UTF-8?
Date: Mon, 2 Dec 2002 19:53:09 -0500 (EST)




On Tue, 3 Dec 2002, Jim Z wrote:

> I created a few Japanese file and directory names in UTF-8 in Windows. Then

How could you make filename and directory names in UTF-8 in Windows?
Windows(both NTFS and VFAT) use UTF-16 for filenames.

I lied. I created those file names through applications from which it did an UDP call and added those entries into UNIX /etc/exports file. I checked and made sure they were UTF-8 format.

> I logged in from Linux (7.3) that is configured to run Japanese. From the
> login 'language' I can only select 'Japanese (eucJP)' (there is no Japanese
> (UTF-8)).

You can easily add 'Japanese(UTF-8' to your gdm/kdm language
selection menu. See
<https://bugzilla.mozilla.org/bugzilla/show_bug.cgi?id=75829>
Or, you can just set it in ~/.1i8n.

I couldn't get into here and is it a typo? PLEASE help - I really want to take a look and do this.

> I did a 'showmount -e 10.xxx.xxx.xxx' but I got scambled Japanese
> characters for those entries that are encoded in UTF-8. Then I switched the
> locale to ja_JP.UTF-8, but the same stuff was returned. What's wrong with
> this picture?

How did you mount Windows filesystem? With smbmount or NFS? If it's
NTFS that is mounted via samba, you have to specify
'iocharset=utf-8'. If it's VFAT exported over the net, you also have
to specify codepage(for Japanese, it's 932). For local filesystems,,
specifying 'utf8' (and 'codepage=932' for VFAT) option to mount command
would be sufficient. (see the man pages of mount(8) and fstab)

It's an UNIX (Linux) to UNIX (NetBSD) mount. The UTF-8 Japanese file names are in my NetBSD:/etc/exports. I can only mount those entries that are ASCII equivalent. I also tried it from Solaris 8 (logged in as 'Japanese UTF-8 (Unicode)') and it worked fine. I am sure if I can turn on UTF8 mode I should be able to do so.

  Needless to say, you have to run your shell in UTF-8 terminal
(e.g. xterm 16x or mlterm) to view UTF-8 characters.

I can't get it to work. 'xterm -u8' doesn't work. the locale never changes.
From Solaris you can do a "LANG=ja_JP.UTF-8 dtterm &" and the new dtterm has
the right locale set.
what is mlterm? Couldn't find it on Linux 7.3.

  Now in case of NFS, I have no idea how 'Windows NFS server'
translates UTF-16 used in NTFS and VFAT to multibyte encodings.  There
must be a server config. option for that.(the default might be the 'ANSI'
codepage of the current locale. For Japanese, it's Windows-932/Shift_JIS)
For Unix NFS server - Unix client, there's little need for encoding
translation although having one would be nice for some cases(e.g. EUC-JP
on the server and UTF-8 on the client-side)

  Jungshik



--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus

--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/

Reply via email to