mysql 4.1 的編碼問題

mysql 4.1 之後,對於編碼的支援多了很多,也可以完全支援 unicode (萬國碼) 了。在線上手冊中,有關編碼部分的說明如下:

1.10.3.6. Connection Character Sets and Collations
2.10.3.6. Connection Character Sets and Collations

第2點是說明如何設定一個 connection 的編碼。設定

SET NAMES 'x'

等同於設定

mysql> SET character_set_client = x;
mysql> SET character_set_results = x;
mysql> SET character_set_connection = x;

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s

%d 位部落客按了讚: