« Return Code Vs Exc... | Blog首页 | java byte code 查看器 »
2006/04/27
native2ascii - Native-to-ASCII Converter
native2ascii - Native-to-ASCII Converter
Converts a file with native-encoded characters (characters which are non-Latin 1 and non-Unicode) to one with Unicode-encoded characters.SYNOPSIS
native2ascii [options] [inputfile [outputfile]]DESCRIPTION
The Java compiler and other Java tools can only process files which contain Latin-1 and/or Unicode-encoded (\udddd notation) characters. native2ascii converts files which contain other character encodings into files containing Latin-1 and/or Unicode-encoded charaters.If outputfile is omitted, standard output is used for output. If, in addition, inputfile is omitted, standard input is used for input.
OPTIONS
- -reverse
- Perform the reverse operation: convert a file with Latin-1 and/or Unicode encoded characters to one with native-encoded characters.
- -encoding encoding_name
- Specify the encoding name which is used by the conversion procedure. The default encoding is taken from System property file.encoding. The encoding_name string must be taken from the first column of the table of supported encodings in the Supported Encodings document.
- -Joption
- Pass option to the Java virtual machine, 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 megabytes.
在java中处理文件时,往往需要读取一些包含Native(应该是各种本地语言)的文件,可以通过 jdk 提供的 native2ascii 工具转化; 该工具可以自动把Native 编码的文件转化为 Unicode 编码的文件,供java程序读取,其中unicode编码使用 \uxxxxx 格式表示 (xxxx 应该是utf-16 标准吧)
阿涂
发表于
2006-04-27 16:28
阅读(3072)
评论(
0)
引用(
0)
Java
所有人可见
相关内容
回复列表每两分钟自动刷新一次,想立即刷新吗?点击这里







