Movatterモバイル変換


[0]ホーム

URL:


Skip toContent

Java Platform, Standard Edition Tools Reference
Contents    Previous    Next

native2ascii

Creates localizable applications by converting a file with characters in any supported character encoding to one with ASCII and/or Unicode escapes or vice versa.

Synopsis

native2ascii [inputfile ] [outputfile ]

inputfile

The encoded file to be converted to ASCII.

outputfile

The converted ASCII file.

Description

Thenative2ascii command converts encoded files supported by the Java Runtime Environment (JRE) to files encoded in ASCII, using Unicode escapes (\uxxxx) notation for all characters that are not part of the ASCII character set. This process is required for properties files that contain characters not in ISO-8859-1 character sets. The tool can also perform the reverse conversion.

If theoutputfile value is omitted, then standard output is used for output. If, in addition, theinputfile value is omitted, then standard input is used for input.

Options

-reverse

Perform the reverse operation: Converts a file encoded in ISO-8859-1 with Unicode escapes to a file in any character encoding supported by the JRE.

-encodingencoding_name

Specifies the name of the character encoding to be used by the conversion procedure. If this option is not present, then the default character encoding (as determined by thejava.nio.charset.Charset.defaultCharset method) is used. Theencoding_name string must be the name of a character encoding that is supported by the JRE. See Supported Encodings at
http://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html

-Joption

Passesoption to the Java Virtual Machine (JVM), where option is one of the options described on the reference page for the Java application launcher. For example,-J-Xms48m sets the startup memory to 48 MB. Seejava(1).

Contents    Previous    Next

Copyright © 1993, 2025, Oracleand/or its affiliates. All rights reserved.
Contact Us

[8]ページ先頭

©2009-2025 Movatter.jp