Re: Files named in Chinese characters couldn't display properly in Fedora 12

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 31, 2010 at 12:51 PM, Sam Varshavchik <mrsam@xxxxxxxxxxxxxxx> wrote:
> Quan Qiu writes:
>
>> « HTML content follows »
>> Thanks for reply.
>>
>> 1.  Where did the imported files come from?
>>
>> Those files were copied from Windows XP through ssh.
>>
>> 2.  Are you certain that the file names are in UTF8 and not, for
>> example, GB2312?
>>
>> Most of files are .doc or .xls. Do you know how to convert them to GB2312
>> ?
>
> It's not the contents of your files being in UTF8, GB2312, or another
> character set.
>
> It's the filenames themselves being coded in the UTF8 or GB2312 character
> set.
>
> You say you've set your system locale to zh_CN.UTF8. This indicates that
> your filenames must be coded in UTF8 to be shown correctly on your terminal.
>
> Try this, in the directory with your files:
>
> ls -l | iconv -f GB2312 -t UTF8
>
> If you now see your files named in proper Chinese characters, this means
> that your filenames are coded in GB2312. You simply need to rename these
> files from GB2312 to UTF8. Probably something like this:
>
> ls | while read filename
> do
> mv -i "$filename" "`echo \"$filename\" | iconv -f GB2312 -t UTF8`"
> done
>
>

I have fedora 13 (english version) with

yum groupinstall "Chinese Support"

display, type files and file names all right.

are you able to create a file with Chinese file name?

good luck



> --
> users mailing list
> users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
>
>



-- 

Linux Toys
http://linuxishbell.wordpress.com/
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux