请教native2ascii 的具体用法

lemcon 2004-09-27 04:57:11
请教:编码工具 native2ascii 的命令行格式。
...全文
191 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
lemcon 2004-10-01
  • 打赏
  • 举报
回复
谢谢了
realfish 2004-09-28
  • 打赏
  • 举报
回复
http://h71033.www7.hp.com/nsswdocs/nsj/nsj_1_6/toolsref/native.htm
realfish 2004-09-28
  • 打赏
  • 举报
回复
native2ascii: Native-to-ASCII Converter
Converts a file that has native-encoded characters (characters which are non-Latin-1 and non-Unicode) to one with Unicode-encoded characters. For more information, see Description.
Synopsis
native2ascii [options] [inputfile [outputfile]]
Options
-encoding [encoding_name]
Specifies the encoding name that the conversion procedure uses. encoding_name must be a string that can be passed as the argument of class CharacterEncoding, a value from the left column of the following table. The default is taken from System property file.encoding, which you set with the java option -D.
Converter Class
(encoding_name) Description
8859_1 ISO 8859_1
8859_2 ISO 8859_2
8859_3 ISO 8859_3
8859_4 ISO 8859_4
8859_5 ISO 8859_5
8859_6 ISO 8859_6
8859_7 ISO 8859_7
8859_8 ISO 8859_8
8859_9 ISO 8859_9
Big5 Big5, Traditional Chinese
CNS11643 CNS11643, Traditional Chinese
Cp037 United States, Canada (Bilingual, French), Netherlands, Portugal, Brazil, Australia
Cp1006 IBM AIX Pakistan (Urdu)
Cp1025 IBM Multilingual Cyrillic: Bulgaria, Bosnia, Herzegovinia, Macedonia (FYR)
Cp1026 IBM Latin-5, Turkey
Cp1046 IBM Open Edition US EBCDIC
Cp1097 IBM Iran (Farsi/Persian)
Cp1098 IBM Iran (Farsi/Persian) (PC)
Cp1112 IBM Latvia, Lithuania
Cp1122 IBM Estonia
Cp1123 IBM Ukraine
Cp1124 IBM AIX Ukraine
Cp1125 IBM Ukraine (PC)
Cp1250 Windows Eastern European/Latin-2
Cp1251 Windows Cyrillic
Cp1252 Windows Western European/Latin-1
Cp1253 Windows Greek
Cp1254 Windows Turkish
Cp1255 Windows Hebrew
Cp1256 Windows Arabic
Cp1257 Windows Baltic
Cp1258 Windows Vietnamese
Cp1381 IBM OS/2, DOS People's Republic of China (PRC)
Cp273 IBM Austria, Germany
Cp277 IBM Denmark, Norway
Cp278 IBM Finland, Sweden
Cp280 IBM Italy
Cp284 IBM Catalan/Spain, Spanish Latin America
Cp285 IBM United Kingdom, Ireland
Cp297 IBM France
Cp33722 IBM-eucJP - Japanese (superset of 5050)
Cp420 IBM Arabic
Cp424 IBM Hebrew
Cp437 MS-DOS United States, Australia, New Zealand, South Africa
Cp500 EBCDIC 500V1
Cp737 PC Greek
Cp775 PC Baltic
Cp838 IBM Thailand extended SBCS
Cp850 MS-DOS Latin-1
Cp852 MS-DOS Latin-2
Cp855 IBM Cyrillic
Cp857 IBM Turkish
Cp860 MS-DOS Portuguese
Cp861 MS-DOS Icelandic
Cp862 PC Hebrew
Cp863 MS-DOS Canadian French
Cp864 PC Arabic
Cp865 MS-DOS Nordic
Cp866 MS-DOS Russian
Cp868 MS-DOS Pakistan
Cp869 IBM Modern Greek
Cp870 IBM Multilingual Latin-2
Cp871 IBM Iceland
Cp874 IBM Thai
Cp875 IBM Greek
Cp918 IBM Pakistan (Urdu)
Cp921 IBM Latvia, Lithuania (AIX, DOS)
Cp922 IBM Estonia (AIX, DOS)
Cp930 Japanese Katakana-Kanji mixed with 4370 UDC (superset of 5026)
Cp933 Korean mixed with 1880 UDC (superset of 5029)
Cp935 Simplified Chinese Host mixed with 1880 UDC (superset of 5031)
Cp937 Traditional Chinese Host mixed with 6204 UDC (superset of 5033)
Cp939 Japanese Latin Kanji mixed with 4370 UDC (superset of 5035)
Cp942 OS/2 Japanese (superset of 932)
Cp948 OS/2 Chinese (Taiwan) (superset of 938)
Cp949 PC Korean
Cp950 PC Chinese (Hong Kong, Taiwan)
Cp964 AIX Chinese (Taiwan)
Cp970 AIX Korean
EUCJIS JIS, EUC Encoding, Japanese
GB2312 GB2312, EUC Encoding, Simplified Chinese
GBK GBK, Simplified Chinese
ISO2022CN ISO 2022 CN, Chinese
ISO2022CN_CNS CNS 11643 in ISO-2022-CN form, T. Chinese
ISO2022CN_GB GB 2312 in ISO-2022-CN form, S. Chinese
ISO2022KR ISO 2022 KR, Korean
JIS JIS, Japanese
JIS0208 JIS 0208, Japanese
KOI8_R KOI8-R, Russian
KSC5601 KS C 5601, Korean
MS874 Windows Thai
MacArabic Macintosh Arabic
MacCentralEurope Macintosh Latin-2
MacCroatian Macintosh Croation
MacCyrillic Macintosh Cyrillic
MacDingbat Macintosh Dingbat
MacGreek Macintosh Greek
MacHebrew Macintosh Hebrew
MacIceland Macintosh Iceland
MacRoman Macintosh Roman
MacRomania Macintosh Romania
MacSymbol Macintosh Symbol
MacThai Macintosh Thai
MacTurkish Macintosh Turkish
MacUkraine Macintosh Ukraine
SJIS Shift-JIS, Japanese
UTF8 UTF-8



-reverse
Performs the reverse operation: converts a file with Latin-1 and/or Unicode-encoded characters to one with native-encoded characters.

Description
The JavaTM compiler and other Java tools can only process files that contain Latin-1 and/or Unicode-encoded (\udddd notation) characters. native2ascii converts files that contain other character encodings into files containing Latin-1 and/or Unicode-encoded characters.
The default values for inputfile and outputfile are stdin and stdout, respectively.

lemcon 2004-09-27
  • 打赏
  • 举报
回复
谢谢,可以了,但是好像命令行还可以加参数,能详细说说吗?
realfish 2004-09-27
  • 打赏
  • 举报
回复
native2ascii 原文件名 目标文件名

13,097

社区成员

发帖
与我相关
我的任务
社区描述
Java J2ME
社区管理员
  • J2ME社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧