Storing Unicode in MySQL
Question:
How can Unicode be stored in the free edition of MySQL, considering that the "nvarchar" type found in SQL Server does not appear to be available? Does MySQL offer no Unicode support? Despite attempts to use the "text" datatype, success has not been achieved.
Answer:
Utilizing a UTF-8 character set is essential when creating tables. Consequently, both text and memo fields benefit from automatic storage in UTF-8. Notably, MySQL 6 anticipates the inclusion of UTF-16 support.
The above is the detailed content of How Can I Store Unicode Data in MySQL's Free Edition?. For more information, please follow other related articles on the PHP Chinese website!