Re: chinese characters in windows xp to debian
On Fri, Aug 04, 2006 at 11:15:31PM +0200, KE Liew wrote:
> On 8/4/06, Ming Hua <firstname.lastname@example.org> wrote:
> >You mentioned that you tried to use a USB flash drive to copy the files
> >and it didn't work. I assume the flash drive is formatted in Windows
> >(therefore should have some kind of FAT filesystem), in that case you
> >can use Arne's advice above, use "mount -t vfat -o utf8 [device]
> >[mount_point]" to mount your flash drive, and see if it helps.
> Yes, I forgot. Mounting as utf8 for the usb works perfectly. I can see
> the chinese characters, etc. :)
> But I would also prefer a better solution.
Would you elaborate what is the problem with the current solution? In
my opinion it's pretty simple and works well for transfering small
> Will LI's advice be the best way? To convert gbk to utf8?
You don't need to convert. If you mount an FAT partition with utf8
option, the filenames _are_ in UTF-8.
> But I can't view it even though my locale has gbk, so I dare not try
> it yet.
You locale is not GBK, it's UTF-8. What you did when "cat
/etc/locale.gen" is to show the AVAIABLE locales on your system (that
is, if your system is kept consistent, the correct way to check is
"locale -a"), not the one you are using. You can only have one locale
at a time.