一个偶然的机会找到一个命令行的编码转换利器 uniconv 2.1d3。
; ^8 h6 f6 W" v% l0 D9 j6 g5 l" Q可以进行各种编码的转换,先放在这里,也许以后有用。" h) @' V3 }/ t- f [5 f i
% P- J, x" P! y3 x7 ^) O, k
9 s/ Z: g5 t. B2 D+ r* f
用法说明, q) o( \8 e" j, c4 h
usage: uniconv [-debug] [-directASCII] [-subst <substitute-string>]
8 h$ y8 ?- d; A; {2 r( x <input-encoding> <input-file> <output-encoding> <output-file>1 x+ t; N% s8 s# o7 L' B
<property | transform>*0 T- ^/ Z9 l. t8 P
Version 2.1d3, 11/18/98
5 ]( Z8 n, D2 gCopyright (c) Basis Technology Corp. 1995-1998. All rights reserved.' A7 X% q8 x5 ^+ u
Type "uniconv -help" for more information.
4 L, Z9 K" {4 R3 F9 M, e! qType "uniconv -describe <encoding>" for more information about an encoding.6 Z+ x+ J: ^" U; a" Q7 E5 D( L
Encodings: Arabic, ASCII, big-endian, Big5, BMP, ChineseAutoDetect,
' m, w( {: `) |9 N; F8 ? CNS-11643, CNS-11643-1986, cp1251, cp1252, cp437, cp850, cp932, 8 n* q6 r, J" h
EBCDIC, EBCDIK, EUC-J, EUC-KR, GB2312, Greek, Hebrew, HZ,
$ r5 A. n' D. \* p ISO-2022-JP, ISO-2022-KR, ISOLatinCyrillic, JapaneseAutoDetect, # C5 G, D' j: H# a. N, N; P+ b, O
Java, JIS_X0201, JIS_X_0208, KoreanAutoDetect, Latin1, Latin2, 9 R6 @$ r; U, `7 W0 e
Latin3, Latin4, Latin5, Latin6, little-endian, Shift-JIS, Thai,
; q1 w( X! w0 f- t# E2 U UCS2, Unicode11:big-endian, Unicode11:BOM:big-endian, 6 o1 \. B+ T, N8 N% Q
Unicode11:BOM:Java, Unicode11:BOM:little-endian, # K$ f7 P" O/ c
Unicode11:BOM:UCS2, Unicode11:BOM:UTF7, Unicode11:BOM:UTF8, 9 K7 R6 J5 j8 d: ]. X
Unicode11:Java, Unicode11:little-endian, Unicode11:UCS2, L% j3 C6 z& q# t
Unicode11:UTF7, Unicode11:UTF8, Unicode20:BOM:Java, ) l/ N; _0 X8 s) h5 l
Unicode20:BOM:UTF7, Unicode20:BOM:UTF8, Unicode20:little-endian, 9 K! {9 H" B5 U; ^. j+ ~4 d
Unicode20:UCS2, UTF7, UTF8
* m U/ Z: v* l$ R) D& cProperties: UppercaseLetter, LowercaseLetter, TitlecaseLetter, ModifierLetter, : ^8 u. v8 D: p1 X+ Q) L
OtherLetter, AnyLetter, NonSpacingMark, CombiningMark,
# V. {% b/ [( h* G z: }8 [1 m DecimalNumber, OtherNumber, DashPunctuation, OpenPunctuation, 7 B- t+ F" T* i0 c6 F% s; P' `
ClosePunctuation, OtherPunctuation, MathSymbol, CurrencySymbol, ) A$ M+ M. A! N M
OtherSymbol, SpaceSeparator, LineSeparator, ParagraphSeparator,
2 J( s5 F/ x8 I& k2 g ControlCharacter, OtherCharacter, UndefinedScript, GeneralScript,
* i: A/ q( P8 i. ]& l! p Latin, Greek, Cyrillic, Armenian, Hebrew, Arabic, Devanagari,
6 N3 x- d1 b: U% [( b/ x$ _ Bengali, Gurmukhi, Gujarati, Oriya, Tamil, Telugu, Kannada, 6 r" P0 ^! W1 S' P# X; T& P
Malayalam, Thai, Lao, Tibetan, Georgian, HangulJamo, Hiragana, ( x: y" p5 f3 e# ?, ~9 H3 b
Katakana, Kana, Bopomofo, CJKUnifiedIdeographs, Hangul,
* i; J" @' i# p1 T) q* V1 o UndefinedWidth, Fullwidth, Halfwidth8 C i# [- H3 Y3 L) F
Transforms: ToLowercase, ToUppercase, ToFullwidth, ToHalfwidth, ToHiragana, 4 A2 A) \& y1 m4 q3 `0 z
ToKatakana, Decompose, Compose, ToCombiningMark, ToSpacingMark,
1 j+ \! Z# I; M- G Select, Filter, ToCRLF, ToCR, ToLF, ToParagraphSeparator,
6 u3 p8 u* R! V ToLineSeparator, ToCanonical, ToTraditionalChinese,
% p3 r9 j+ `% ~' e D- | ToSimplifiedChinese, RomajiToHiragana, RomajiToKatakana, ( Y0 v3 a8 H7 s! d# x
KanaToRomaji, KanaToKunreiRomaji, KanaToHebonRomaji,
' O8 w0 D& v* o& m ToLatinNumber, FromSGMLEntity |