This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

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.

I agree. Here's the link:
subject: native2ascii -reverse Not Working
It's not a secret anymore!