Possible to repair garbled Chinese filenames?

Posted by futureelite7 on Stack Overflow See other posts from Stack Overflow or by futureelite7
Published on 2010-03-23T09:39:42Z Indexed on 2010/03/23 9:43 UTC
Read the original article Hit count: 474

Filed under:
|
|
|
|

I'm downloading via FTP some files with chinese names (BIG5 encoded), and Filezilla displays those filenames as garbage (as FTP cannot handle any encoding other than ASCII and UTF-8, as least the standard compliant ones). Given a filename with garbled characters, is it possible for me to repair the encoding and get a proper filename String given that I already know the source encoding? Will the FTP client misinterpreting BIG5 as UTF-8 insert bytes that make conversion back to BIG5 difficult?

© Stack Overflow or respective owner

Related posts about iconv

Related posts about ftp