Pages

Thursday, June 7, 2012

[OSX] Convert BIG5 file to UTF8

I have been trying to transform my works from Windows to OSX.  However, in a addition to a powerful text editor (like Notepad++ on Windows), the most difficult things to me is how to open the files encoding in BIG5 which is what Windows uses for encoding traditional Chinese.

The simplest way to convert the Big5 files to utf8 might be using an embedded converter.

Open Terminal and type this
iconv -f big5 -t utf8 [your_input_file] > [your_output_file]


EDIT: I have found some useful text editors to do conversion.

In general:
1. Enable Big5 encoding character set in preference.
2. Open the Big5 files using the interface.
3. Save the file as UTF8.

TextWrangler
1. Enable Big5
2. File->Open..., read as Big5
3. File->Save as..., Encoding UTF8

A simpler way:
1. Enable Big5
2. Drag and drop
3. File->Reopen Using Encoding..., Big5
    (Or, click on the toolbar below text editing area)
4. Save


Fraiser(Smultron)
Similar to TextWrangler, open the file using Big5, then
Text->Reload Text Using Encoding..., UTF8,
and save.