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

Ding Yi Chen dchen at redhat.com
Tue Aug 31 04:31:27 UTC 2010


Perhaps you can set the putty to use Chinese font, 
I used to use putty with Chinese BBS, should be all right. 

Or you may want to try pietty: 
http://ntu.csie.org/~piaip/pietty/ 

----- "Quan Qiu" <quan.qiu.yz at gmail.com> wrote: 
> Thanks a lot. You are very right about this problem! Now, Fedora can display Chinese file names properly although the font doesn't look pretty. :-D 
> 
> One more question, when I used Putty to SSH the server, all files named in Chinese couldn't display properly. Is that because of the Putty doesn't support Chinese? If it is the case, which SSH tools do you suggest? 
> 
> 
> 
> 
> 
> On Tue, Aug 31, 2010 at 10:51 AM, Sam Varshavchik < mrsam at courier-mta.com > 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 
> 
> 
> -- 
> users mailing list 
> users at lists.fedoraproject.org 
> To unsubscribe or change subscription options: 
> https://admin.fedoraproject.org/mailman/listinfo/users 
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines 
> 
> 
> 
> -- users mailing list users at lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines 

-- 
Ding-Yi Chen 
Software Engineer 
Internationalization Group 
Red Hat, Inc. 

Register now for Red Hat Virtual Experience, December 9. 
Enterprise Linux, virtualization, cloud, and more. 
http://www.redhat.com/virtualexperience 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20100831/a355e417/attachment.html 


More information about the users mailing list