You are not logged in.

#1 2009-09-17 00:43:13

Furyhunter
Member
From: Central Texas
Registered: 2009-09-14
Posts: 13

How do I convert a UTF-8 text file to Shift_JIS?

I am working on a project in which the text files must be encoded in Shift_JIS, not UTF-8.

Is there a tool, or script, or something that will convert a UTF-8 encoded text file to Shift_JIS?


There is always something better.

Offline

#2 2009-09-17 01:42:38

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: How do I convert a UTF-8 text file to Shift_JIS?

I believe iconv can do what you want, but I prefer using recode (available from [extra]) for this kind of tasks due to its simpler syntax. Please note that the conversion is done in-place (your old files are overwritten by the converted ones).

recode UTF-8..SHIFT_JIS [FILE(S)]

Offline

#3 2009-09-18 01:40:29

Furyhunter
Member
From: Central Texas
Registered: 2009-09-14
Posts: 13

Re: How do I convert a UTF-8 text file to Shift_JIS?

Thanks, I'll keep this tool in mind as it was what I needed but it doesn't appear to have been the solution to my problem. Oh well.

Last edited by Furyhunter (2009-09-18 01:48:23)


There is always something better.

Offline

Board footer

Powered by FluxBB