看板
[ Perl ]
討論串[問題] 特殊的中文字
共 6 篇文章
內容預覽:
我做了這樣的測試:. use Encode;. use Text::ParseWords;. open (SRC,"test.txt");. while(<SRC>){. chomp;. $data = encode("utf8", $_);. @words = &parse_line('\,',
(還有135個字)
內容預覽:
謝謝... 我把code改成:. use Text::ParseWords;. use utf16;. open (SRC,"test.txt"); #text.txt的內容是 "許正雄","名字許正雄". binmode (SRC ":encoding(big5)");. while(<SRC>)
(還有221個字)