Storing UTF-8 strings in MySQL Database
Posted by: SHOE MAKER
Date: March 20, 2009 12:04PM

Folks,

We have an endpoint ( A Servlet ) where a user can enter a multi-byte character. Now my question is do we have to make any changes to the MySQL Table, to store this multi-byte character

Question # 1) This is a Java program, and I beleive that Java characters are unicode by default. So can I write this unicode character in the mySQL table and this mySQL table has a field called VarChar, is this VarChar a unicode character.

Question # 2) Do we have to do some thing special to MySQL table inorder to store this multi-byte character ?. Also can we specifically store a UTF-8 character.

Thanks a bunch
_Durga

Options: ReplyQuote


Subject
Views
Written By
Posted
Storing UTF-8 strings in MySQL Database
7856
March 20, 2009 12:04PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.