Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes native2ascii -reverse Not Working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "native2ascii -reverse Not Working" Watch "native2ascii -reverse Not Working" New topic

native2ascii -reverse Not Working

James Gordon
Ranch Hand

Joined: Aug 09, 2002
Posts: 106

I can't seem to get back my chinese texts by using native2ascii.

1) native2ascii -encoding utf8 file1.txt > file2.txt
2) native2ascii -encoding utf8 -reverse file2.txt > file3.txt

By right, the content for file3.txt should be the same as file1.txt
but it's having some funny characters instead.

Any clues?

Thanks in advance.
Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

Did you open the file3.txt correctly ? Which editor are you using ?

[My Blog]
All roads lead to JavaRanch
James Gordon
Ranch Hand

Joined: Aug 09, 2002
Posts: 106
Hi Chris,

I've found the problem.
The file redirection is causing it.

Don't get me started about those stupid light bulbs.
subject: native2ascii -reverse Not Working
Similar Threads
need help!!! please
Creating XML from folder
JTree - Compare Nodes problem
database(?) and stuff
Help using htmlunit