因為我在寫程式所用的到的 MySQL,同時有 3.x 版及 5.x 版要處理,所以對 MySQL 的字元編碼問題需要特別做研究,研究了一陣子之後,終於有了一些初步的心得,列出舊版及新版的 MySQL 做為比較:
繼續閱讀
標籤:charset
[轉載][MySQL]MySQL 的 SET NAMES xxx 字元編碼問題分析
[Perl]Big5/UTF-8 編碼轉換的模組
Big5 及 UTF-8 編碼的轉換方式有兩種 (請先安裝 Encode::compat 模組):
方式一
use Encode::compat; use Encode qw(from_to); my $string = "中文"; #Big5 轉 UTF-8 from_to($string, 'big5', 'utf8'); print "$string\n"; #UTF-8 轉 Big5 from_to($string, 'utf8', 'big5'); print "$string\n";