Team LiB
Previous Section Next Section

native2asciiConvert 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.


-encoding encoding-name

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 \uxxxx characters to characters in the native encoding.

See also,

    Team LiB
    Previous Section Next Section