作者tower0224 (想)
看板Perl
標題[請益] 請問各位高手編碼的問題
時間Mon Jan 28 12:34:39 2008
因為我想用perl Tk 去顯示出特殊的內碼
可是每次做設定...那些內碼顯示出來的字元都會出現亂碼
我用中文去顯示的時候也是亂碼...請問有任何解法嗎??
感謝各位高手指教
我有用過use encoding "utf8";
可是會出現Malformed UTF-8 character (unexpected continuation byte 0xb3, with no
preceding start byte)
然後我的環境是vista 跟cygwin
感覺好像是無解的問題...~><~
http://bbs.chinaunix.net/viewthread.php?tid=997207
請問各位高手有沒有甚麼看法呢???
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.230.167.190
※ 編輯: tower0224 來自: 61.230.167.190 (01/28 13:16)
※ 編輯: tower0224 來自: 61.230.167.190 (01/28 17:47)
※ 編輯: tower0224 來自: 61.230.167.190 (01/29 02:44)
推 salagadoola:沒玩過Tk不清楚,或許可以試試把use encoding "utf8"; 01/29 10:50
→ salagadoola:改成use utf8;看看有沒有用。 01/29 10:50
→ tower0224:我有試過,出現跟use encoding "utf8";一樣的問題 01/29 12:49
→ tower0224:是否是cygwin設置的問題還是甚麼其他的原因呢?? 01/29 12:50
→ tower0224:但是有些字卻依然是出現亂碼 01/29 12:51
→ tower0224:如果我用use encoding "big5";的時候 01/29 12:52