Japanese JIS encoding conversion in Linux

My program reads in a japanese data from MySQL database which the data is stored in UTF-8 and convert it into EUC-JP encoding in Linux and finally write it into a Text File. However, when I open the Text File, the contents have been garbled.

I do not have any problem when working on the "Shift_JIS" or "SJIS" in Windows, this is because both encodings are Windows/DOS specific encoding, the "EUC-JP" SHOULD be used in Linux.

Can somebody point me in the right direction of this ?

Thanks

[513 byte] By [KittyMakera] at [2007-11-26 18:55:20]
# 1
> Can somebody point me in the right direction of this> ?Please post the code you are using to convert and write the values.
sabre150a at 2007-7-9 20:33:28 > top of Java-index,Java Essentials,Java Programming...
# 2
> However, when I open the Text File, the contents have been garbled. How do you open it? Is it not the opening program's issue?
BIJ001a at 2007-7-9 20:33:28 > top of Java-index,Java Essentials,Java Programming...