Detailed description of native2ascii

Source: Internet
Author: User

The problem of displaying Chinese Characters in Java programs is a problem that everyone has encountered, especially the problem of Chinese Characters in Jad files. Generally, native2ascii is used for conversion. Here we have added a detailed description of the native2ascii tool:

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 a string taken from the first column of the table
Below.

-------------------------------------------------------------

Converter description
Class
-------------------------------------------------------------

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
Cns000043 CNS 11643, traditional Chinese
Cp037 USA, 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
Cp1251 windows Cyrillic
Cp1252 windows 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)
Cp1383 ibm aix 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-Japan (superset of 5050)
Cp420 IBM Arabic
Cp424 IBM Hebrew
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 japan ese 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 miexed with 6204 UDC,
Superset of 5033
Cp939 Japanese Latin Kanji mixed with 4370 UDC,
Superset of 5035
Cp942 japan ese (OS/2) 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, Japan
Gb2312 gb2312, EUC encoding, simplified Chinese
GBK, simplified Chinese
Iso2022cn ISO 2022 CN, Chinese
Iso2022cn_cfs 11643 in ISO-2022-CN form, T. Chinese
Iso2022cn_gb GB 2312 in ISO-2022-CN form, S. Chinese
Iso2022kr iso2022 KR, Korean
JIS, Japan
Jis0208 JIS 0208, Japan
Koi8_r KOI8-R, Russian
Ksc5601 ks c 5601, Korean
Ms874 windows Thai
Macarabic Macintosh Arabic
Maccentraleurope Macintosh Latin-2
Maccroatian Macintosh Croatian
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, Japan
Utf8 UTF-8

However, wtk can directly solve the Chinese problem of Jad:
Settings> midlets> MidLet-1 properties change to the Chinese you want to display and then regenerate the Jad and jar files.

For example:

Native2ascii-reverse-encoding GBK re. properties de. Properties

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.