一个偶然的机会找到一个命令行的编码转换利器 uniconv 2.1d3。7 b/ R8 G# d! g S) ?7 P6 F
可以进行各种编码的转换,先放在这里,也许以后有用。
! H7 V+ J+ ~" Y7 P+ C5 ^2 P) r
, u* P, Q2 s/ [* p, S
4 ~/ y2 B: Y( H& T: b- f; h用法说明
% K0 ]+ b) ~9 c- o+ S# n S& C5 j* Xusage: uniconv [-debug] [-directASCII] [-subst <substitute-string>]
8 Y% l" {" n9 v, L8 U- W <input-encoding> <input-file> <output-encoding> <output-file>
+ ]$ i: e* {1 y5 Q <property | transform>*
. r8 F1 j t1 w6 A$ C7 h0 LVersion 2.1d3, 11/18/98
, {" h: M- H; l* Z' lCopyright (c) Basis Technology Corp. 1995-1998. All rights reserved.
6 |6 _, G0 {) H" r7 o" x9 g/ aType "uniconv -help" for more information.# K0 N1 q3 e! w! Q$ s- x( L: w
Type "uniconv -describe <encoding>" for more information about an encoding.
+ e2 T+ F, z3 G$ z8 m4 ~( ^Encodings: Arabic, ASCII, big-endian, Big5, BMP, ChineseAutoDetect, # d/ y* O: i/ Y. H0 M6 b
CNS-11643, CNS-11643-1986, cp1251, cp1252, cp437, cp850, cp932,
* r- e( k) e7 ~( S7 Y) s1 z5 ] EBCDIC, EBCDIK, EUC-J, EUC-KR, GB2312, Greek, Hebrew, HZ, + U/ m! L4 ]$ B
ISO-2022-JP, ISO-2022-KR, ISOLatinCyrillic, JapaneseAutoDetect, ; a) O4 L$ k% G( T' l5 n# R3 D2 [: ^
Java, JIS_X0201, JIS_X_0208, KoreanAutoDetect, Latin1, Latin2, * c5 x) ]' \0 X, B
Latin3, Latin4, Latin5, Latin6, little-endian, Shift-JIS, Thai,
' ^2 T1 @4 o- _0 h* t, Y UCS2, Unicode11:big-endian, Unicode11:BOM:big-endian,
- o& @; B e+ a& J9 V j Unicode11:BOM:Java, Unicode11:BOM:little-endian,
0 v' _# m& S! x Unicode11:BOM:UCS2, Unicode11:BOM:UTF7, Unicode11:BOM:UTF8, ( s \ ~6 j% S4 a4 A2 N
Unicode11:Java, Unicode11:little-endian, Unicode11:UCS2, . V$ B0 h% s- f: T5 P( ^: r3 ?
Unicode11:UTF7, Unicode11:UTF8, Unicode20:BOM:Java,
6 w, C6 w& t* r& m6 Z: V Unicode20:BOM:UTF7, Unicode20:BOM:UTF8, Unicode20:little-endian,
5 u$ k; P" G4 K& k% k1 i& V5 s Unicode20:UCS2, UTF7, UTF8
9 Z( p+ p, c4 t9 H1 c6 VProperties: UppercaseLetter, LowercaseLetter, TitlecaseLetter, ModifierLetter, ( u8 R9 R* }' W" _+ G
OtherLetter, AnyLetter, NonSpacingMark, CombiningMark,
; C. o0 M: L$ p7 B/ T/ ^ DecimalNumber, OtherNumber, DashPunctuation, OpenPunctuation, 3 z1 U1 o7 f7 _& f
ClosePunctuation, OtherPunctuation, MathSymbol, CurrencySymbol, 6 m6 ^* _! {5 v/ n: d9 z M1 H
OtherSymbol, SpaceSeparator, LineSeparator, ParagraphSeparator,
O! k. x0 G3 i' \: ~% z4 [0 ` ControlCharacter, OtherCharacter, UndefinedScript, GeneralScript, + p7 y: j) w7 D W( w
Latin, Greek, Cyrillic, Armenian, Hebrew, Arabic, Devanagari,
3 v& r" H8 P9 D0 D Bengali, Gurmukhi, Gujarati, Oriya, Tamil, Telugu, Kannada,
! w. E- z% }0 C+ D3 a7 N3 h Malayalam, Thai, Lao, Tibetan, Georgian, HangulJamo, Hiragana,
: d5 { q2 x0 W5 w% K: ? Katakana, Kana, Bopomofo, CJKUnifiedIdeographs, Hangul,
/ n! H# Y: T* l7 q& i+ _ UndefinedWidth, Fullwidth, Halfwidth
# z |, V. c8 @& d$ W- l, ~Transforms: ToLowercase, ToUppercase, ToFullwidth, ToHalfwidth, ToHiragana, : N( C3 G0 v5 f! E( a+ n3 U/ b
ToKatakana, Decompose, Compose, ToCombiningMark, ToSpacingMark, ; {/ m! }5 u) t2 b: }0 A: I% @
Select, Filter, ToCRLF, ToCR, ToLF, ToParagraphSeparator, / F( N6 y* [6 t) |7 f/ o3 E7 L. V
ToLineSeparator, ToCanonical, ToTraditionalChinese, " b# w" f$ \, F" B' n
ToSimplifiedChinese, RomajiToHiragana, RomajiToKatakana,
/ ?/ Q+ h5 Z* M6 U; R KanaToRomaji, KanaToKunreiRomaji, KanaToHebonRomaji, 8 T5 q. t+ N( N0 g- B1 W- s# A9 l* \
ToLatinNumber, FromSGMLEntity |