Java Reference
In-Depth Information
The following command converts all characters in the
Source.java
file into Unicode-encoded characters and
places the output in the
Destination.java
file. It is assumed that the
Source.java
file has been written using Chinese
Big5
encoding.
native2ascii -encoding Big5 Source.java Destination.java
The following command performs the reverse operation, that is, converts a file
Source.java
with Latin-1 and/or
Unicode-encoded characters to a file
Destination.java
with native-encoded characters:
native2ascii -reverse Source.java Destination.java
The
native2ascii
tool uses the standard output for the output if the outputfile name is omitted. It uses standard
input for the input if the inputfile name is omitted too.