2009年1月10日 星期六

International Components for Unicode 支援 BIG5 、CP937(EBCDIC 繁體中文) 互轉

http://icu-project.org/

example

Usage: uconv [ -h, -?, --help ] [ -V, --version ] [ -s, --silent ] [ -v, --verbo
se ] [ -l, --list | --list-code code | --default-code | -L, --list-transliterato
rs ] [ --canon ] [ -x transliteration ] [ --to-callback callback | -c ] [ --from
-callback callback | -i ] [ --callback callback ] [ --fallback | --no-fallback ]
[ -b, --block-size size ] [ -f, --from-code code ] [ -t, --to-code code ] [ --a
dd-signature ] [ --remove-signature ] [ -o, --output file ] [ file ... ]

Options: -h, --help print this message
-V, --version print the program version
-s, --silent suppress messages
-v, --verbose display progress information
-l, --list list all available encodings
--list-code code list only the given encoding
--default-code list only the default encoding
-L, --list-transliterators list all available transliterators
--canon print list in cnvrtrs.txt(5) format
-x transliteration run everything through transliteration
--to-callback callback use callback on destination encoding
-c omit invalid characters from the output
--from-callback callback use callback on original encoding
-i ignore invalid sequences in the input
--callback callback use callback on both encodings
-b, --block-size size read size bytes blocks (default: 4096)
--fallback use fallback mapping
--no-fallback do not use fallback mapping
-f, --from-code code set the original encoding
-t, --to-code code set the destination encoding
--add-signature add a U+FEFF Unicode signature character
(BOM)
--remove-signature remove a U+FEFF Unicode signature charac
ter (BOM)
-o, --output file write output to file

Callbacks: substitute skip stop escape escape-icu escape-java escape-c escape-xm
l escape-xml-hex escape-xml-dec escape-unicode

H:\temp\icu\icu\bin>uconv -f cp950 -t cp937 -o cp937.txt big5.txt

H:\temp\icu\icu\bin>uconv -t cp950 -f cp937 -o cp950.txt cp937.txt

1 則留言:

匿名 提到...

Amiable fill someone in on and this post helped me alot in my college assignement. Thank you for your information.