How to convert old Japanese text encodings?

I run MacBook Pro under 10.6.7, and I am competent in Unix. I have old Japanese text files in various encodings (EUC, SJS, New-JIS) that I can no longer read or display. The old program jconv.c does not help, since it only converts among these encodings. Is there a way to convert them (or any one of them) to the current "normal" Japanese text that can be seen in TextEdit, etc.? I have set the Terminal preferences to SJS and EUC (can't find NewJIS), among others, including UTF-8. Eleanor


ANSWERS:


I recommend you look into iconv for doing such conversions.


nkf is a Linux command line program which can meet your requirement. I am sure it is available at Debian. So you can download sorce code from the Net.



 MORE:


 ? Double \\ appears while reading from internet
 ? Reading keywords from a file and searching for them without results
 ? C++ exe writes different text output to a file when called from cygwin
 ? Trying to read certain text from a file that has strange characters. (Python)
 ? Strange intermittent character encoding behaivor in Tomcat server
 ? Strange intermittent character encoding behaivor in Tomcat server
 ? Strange intermittent character encoding behaivor in Tomcat server
 ? Handling Character Encoding in URI on Tomcat
 ? Character encoding problems with tomcat
 ? Character encoding of GET request parameter