This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring 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: 14688

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.

It is sorta covered in the JavaRanch Style Guide.
subject: native2ascii -reverse Not Working
jQuery in Action, 3rd edition