native2ascii | Convert text to ASCII with Unicode escapes |
native2ascii [ options ] [ inputfile [ outputfile ]]
native2ascii is a simple program that reads a text file (usually of Java source code) encoded using a local encoding and converts it to a Latin-1-plus-ASCII-encoded-Unicode form allowed by the Java Language Specification. This is helpful when you must edit a file of Java code but do not have an editor that can handle the encoding of the file.
The inputfile and outputfile are optional. If unspecified, standard input and standard output are used, making native2ascii suitable for use in pipes.
Specifies the encoding used by source files. If this option is not specified, the encoding is taken from the file.encoding system property.
Specifies that the conversion should be done in reversefrom encoded \u xxxx characters to characters in the native encoding.
java.io.InputStreamReader , java.io.OutputStreamWriter