一个偶然的机会找到一个命令行的编码转换利器 uniconv 2.1d3。8 |" z8 ?/ E3 g2 @8 h s7 h
可以进行各种编码的转换,先放在这里,也许以后有用。
l; V! D/ V' S- D1 B- a
% T3 e0 O! M- }, }. K+ U- X/ W) f- E( M; |& m. n2 u9 o
用法说明
( l, t/ a# ?3 rusage: uniconv [-debug] [-directASCII] [-subst <substitute-string>]9 x/ G5 N: O$ N+ t
<input-encoding> <input-file> <output-encoding> <output-file>
& [7 m' ]1 a4 v& e# s6 V5 @ <property | transform>*
4 s; q6 d) r6 H" ~3 YVersion 2.1d3, 11/18/98
l! Q, f% c6 x6 ^. G$ F# ]Copyright (c) Basis Technology Corp. 1995-1998. All rights reserved.$ \6 c1 p/ \9 y9 ~
Type "uniconv -help" for more information.4 o) a, g( `7 ~, z6 H
Type "uniconv -describe <encoding>" for more information about an encoding.$ J3 z6 ~9 y/ ^8 Q7 c
Encodings: Arabic, ASCII, big-endian, Big5, BMP, ChineseAutoDetect, 4 Y' Y- Y% y" a, l$ ^4 A4 ]
CNS-11643, CNS-11643-1986, cp1251, cp1252, cp437, cp850, cp932, ! h3 t4 L0 @8 I- G. V
EBCDIC, EBCDIK, EUC-J, EUC-KR, GB2312, Greek, Hebrew, HZ, " k3 z* [2 g8 Q# a/ o' A
ISO-2022-JP, ISO-2022-KR, ISOLatinCyrillic, JapaneseAutoDetect, 4 }" N1 f- k& A, z: o' }
Java, JIS_X0201, JIS_X_0208, KoreanAutoDetect, Latin1, Latin2,
$ s4 j& s( B5 I5 c& b Latin3, Latin4, Latin5, Latin6, little-endian, Shift-JIS, Thai, R+ _% I! k; F+ x
UCS2, Unicode11:big-endian, Unicode11:BOM:big-endian,
9 e6 w& H6 ?: N/ H# B* M3 l6 c Unicode11:BOM:Java, Unicode11:BOM:little-endian,
6 ?1 O. o1 x4 K* G0 G/ R Unicode11:BOM:UCS2, Unicode11:BOM:UTF7, Unicode11:BOM:UTF8, : R c4 z& g+ n' l) {6 ?& g
Unicode11:Java, Unicode11:little-endian, Unicode11:UCS2, 9 Z! X5 B: v0 m
Unicode11:UTF7, Unicode11:UTF8, Unicode20:BOM:Java, 8 o& l4 j6 e) ]% K1 s2 C
Unicode20:BOM:UTF7, Unicode20:BOM:UTF8, Unicode20:little-endian,
$ z& b: c' B$ A! e0 P; r$ r Unicode20:UCS2, UTF7, UTF8
2 U' U, n( S/ U- bProperties: UppercaseLetter, LowercaseLetter, TitlecaseLetter, ModifierLetter,
; I8 k* E( L Z8 u, a0 Y. k OtherLetter, AnyLetter, NonSpacingMark, CombiningMark, 3 x/ h5 p f* `! r: Z" u3 m6 K
DecimalNumber, OtherNumber, DashPunctuation, OpenPunctuation, ; E: [ K7 [& q7 D
ClosePunctuation, OtherPunctuation, MathSymbol, CurrencySymbol, 6 S, L- v! h/ } z, F. `7 B
OtherSymbol, SpaceSeparator, LineSeparator, ParagraphSeparator,
2 ^- h1 b6 K% A+ B7 U& D ControlCharacter, OtherCharacter, UndefinedScript, GeneralScript, 6 y4 h2 g' \! F0 b- T9 K. Y* S x
Latin, Greek, Cyrillic, Armenian, Hebrew, Arabic, Devanagari, $ `, d/ y& [9 l
Bengali, Gurmukhi, Gujarati, Oriya, Tamil, Telugu, Kannada,
( Q* L d' a1 _8 N7 v' Z Malayalam, Thai, Lao, Tibetan, Georgian, HangulJamo, Hiragana, - G/ s4 G8 o$ ~8 ^
Katakana, Kana, Bopomofo, CJKUnifiedIdeographs, Hangul,
) D- ~; U! B7 G! |4 n UndefinedWidth, Fullwidth, Halfwidth
) q+ Z3 ?& j9 O, Q9 i \* aTransforms: ToLowercase, ToUppercase, ToFullwidth, ToHalfwidth, ToHiragana, ' c3 m* l g: K3 [. |' v- w N
ToKatakana, Decompose, Compose, ToCombiningMark, ToSpacingMark, i# `7 I! l# C( B3 P; d
Select, Filter, ToCRLF, ToCR, ToLF, ToParagraphSeparator, 1 F6 S2 l2 V }1 q" ?* V+ a3 p
ToLineSeparator, ToCanonical, ToTraditionalChinese, + g2 K5 U- ?' L
ToSimplifiedChinese, RomajiToHiragana, RomajiToKatakana,
' F& }! Y I/ |. T KanaToRomaji, KanaToKunreiRomaji, KanaToHebonRomaji,
r, g9 |/ \9 M8 `8 x6 o ToLatinNumber, FromSGMLEntity |