drkcore

2009/07/25 09:01:24

「文字コード超研究」を読んだ

utf8の話が参考になった。

ProductName 文字コード超研究
深沢 千尋
ラトルズ / ¥ 3,129 ()
在庫あり。

ついでにExtlibのUTF8のソースも読んで理解を深めた。

# #require "extlib";;
/opt/local/lib/ocaml/site-lib/extlib: added to search path
/opt/local/lib/ocaml/site-lib/extlib/extLib.cma: loaded
# open UTF8;;
# let moji2 = "\xc3\x86";;
val moji2 : string = "\195\134"
# print_string moji2;; 
Æ- : unit = ()

Comments