Re: How to show right Chinese in "Latin1" by VS.NET?
Posted by: Reggie Burnett
Date: October 25, 2006 02:13PM

Cai

WHat version of MySQL are you working with? If you are using 4.1 or higher, you will need to convert the strings to a proper chinese character set in your selects and then use the proper character set on your connection. You would connect with something like the following:

string connStr = "server=xxx;uid=xxx;pwd=xxx;character set=utf8";
MySqlConnection c = new MySqlConnection(connStr);

then on your selects, do the following:

select convert(field1 using utf8), convert(field2 using utf8), ...

a pain I know. the real solution is to set the proper character set on your tables.

Options: ReplyQuote


Subject
Written By
Posted
Re: How to show right Chinese in "Latin1" by VS.NET?
October 25, 2006 02:13PM


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.