[olug] Converting EUC to UTF-8

Eric P eric.maillist at gmail.com
Mon Oct 12 04:03:31 UTC 2009


Eric P wrote:
> I have a zip file from six years back of which all the filenames and 
> their content are EUC encoded (Japanese).
> 
> Nowadays everything (Asian languages, etc.) is UTF-8, and I'm trying to 
> figure out how to get the filenames and their content to UTF-8.
> 
> I know how to go back and forth between EUC and SJIS but not to UTF.
> 
> Thanks for any pointers.
> Eric
> 

Ok, answering my own post (mostly for net posterity if someone else stumbles upon this thread).

In my case it turns out I just needed to convert the filenames from euc to utf-8.  The magic command to do this is:
convmv -r -f euc-jp -t utf8 *

This shows you what (if any) the new "fixed" filenames will become.  To make the conversion permanent type:
convmv --notest -r -f euc-jp -t utf8 *

Worked like a breeze.
Eric



More information about the OLUG mailing list