一个偶然的机会找到一个命令行的编码转换利器 uniconv 2.1d3。7 v' p" k! h6 p. g2 W) t
可以进行各种编码的转换,先放在这里,也许以后有用。
& z# C- g5 P3 X1 I# ]5 _7 s; H& U) B4 B7 |& W' f$ v$ \& _
D/ Z, k4 t4 v' d- L用法说明
. D1 F% R$ A7 jusage: uniconv [-debug] [-directASCII] [-subst <substitute-string>]# v( a4 ?8 e" V ]3 M: r
<input-encoding> <input-file> <output-encoding> <output-file>2 m5 N. q6 }- R" f- t" a
<property | transform>*
8 Q( g6 | @" c' ^; NVersion 2.1d3, 11/18/98
) P( _2 P8 \" D" A$ _; k" ^1 ACopyright (c) Basis Technology Corp. 1995-1998. All rights reserved.' {) ~; D: O$ ~) t! t9 X' ~$ M
Type "uniconv -help" for more information.
' Q: h5 l, @, ]& L& _Type "uniconv -describe <encoding>" for more information about an encoding.* H* c t& _' c3 p
Encodings: Arabic, ASCII, big-endian, Big5, BMP, ChineseAutoDetect,
0 ]8 Y/ t# `1 L. u% j9 U CNS-11643, CNS-11643-1986, cp1251, cp1252, cp437, cp850, cp932,
) G5 T* ?1 _6 e" W( t EBCDIC, EBCDIK, EUC-J, EUC-KR, GB2312, Greek, Hebrew, HZ, 8 H: u2 X6 I1 \' F5 j- f J# x
ISO-2022-JP, ISO-2022-KR, ISOLatinCyrillic, JapaneseAutoDetect,
1 Q5 \5 ~: `4 t$ j! P4 h, @ Java, JIS_X0201, JIS_X_0208, KoreanAutoDetect, Latin1, Latin2,
& m, t3 n1 [/ ^ Latin3, Latin4, Latin5, Latin6, little-endian, Shift-JIS, Thai,
8 S7 V, k7 i: [8 @# f UCS2, Unicode11:big-endian, Unicode11:BOM:big-endian, 3 |/ O9 [! |: @; o B, a- O
Unicode11:BOM:Java, Unicode11:BOM:little-endian, 1 _+ k- t* g/ F% I2 H& H
Unicode11:BOM:UCS2, Unicode11:BOM:UTF7, Unicode11:BOM:UTF8,
' V( o7 q- E2 o/ W8 s% ` Unicode11:Java, Unicode11:little-endian, Unicode11:UCS2, " W$ g5 V. H" d3 u" Y! B
Unicode11:UTF7, Unicode11:UTF8, Unicode20:BOM:Java, ' v' y, K/ j! t' n9 O1 I
Unicode20:BOM:UTF7, Unicode20:BOM:UTF8, Unicode20:little-endian, # U" Z4 q$ c7 E' `+ x H
Unicode20:UCS2, UTF7, UTF84 F$ g2 A. d3 Q
Properties: UppercaseLetter, LowercaseLetter, TitlecaseLetter, ModifierLetter, ' r6 u$ ~2 V- Q/ A. {5 ~5 i
OtherLetter, AnyLetter, NonSpacingMark, CombiningMark, ! w3 Q( A/ C b4 ~& {4 W
DecimalNumber, OtherNumber, DashPunctuation, OpenPunctuation, / |2 J6 b. A* b+ z) S+ C
ClosePunctuation, OtherPunctuation, MathSymbol, CurrencySymbol, 3 E% g- E" }3 ?1 Y3 q! n1 x! t0 K
OtherSymbol, SpaceSeparator, LineSeparator, ParagraphSeparator,
+ T5 K1 l0 a0 }$ u( M5 y ControlCharacter, OtherCharacter, UndefinedScript, GeneralScript,
+ h2 |6 S; D( m/ g( I: k9 I Latin, Greek, Cyrillic, Armenian, Hebrew, Arabic, Devanagari,
" x1 ]6 p' H ^9 _. _ M* T. |+ y Bengali, Gurmukhi, Gujarati, Oriya, Tamil, Telugu, Kannada, . X+ A2 K: _# a5 e
Malayalam, Thai, Lao, Tibetan, Georgian, HangulJamo, Hiragana, # f I9 {* M* @8 [3 r
Katakana, Kana, Bopomofo, CJKUnifiedIdeographs, Hangul, " s8 A* }$ m* o2 Q
UndefinedWidth, Fullwidth, Halfwidth
! W I9 B* H ~8 z1 `. l/ ^" wTransforms: ToLowercase, ToUppercase, ToFullwidth, ToHalfwidth, ToHiragana, - w% [' c8 O+ }* I: `( M; E
ToKatakana, Decompose, Compose, ToCombiningMark, ToSpacingMark, " m m8 E! V3 i( g0 u: E
Select, Filter, ToCRLF, ToCR, ToLF, ToParagraphSeparator,
6 e2 T* O2 Q. N! |# i- s ToLineSeparator, ToCanonical, ToTraditionalChinese, 9 O( x2 R, d2 _- {: f. c
ToSimplifiedChinese, RomajiToHiragana, RomajiToKatakana,
# e4 a, G+ _) `. @) S+ o+ \ KanaToRomaji, KanaToKunreiRomaji, KanaToHebonRomaji,
" R( W6 |9 `3 g2 o4 P: Q& Z ToLatinNumber, FromSGMLEntity |