MySQL Forums
Forum List  »  PHP

Re: Charset SESSION vs GLOBAL
Posted by: Rick James
Date: March 26, 2011 03:37PM

Interesting. I do not have a direct answer. I have a caution... Because of confusions like this, it could be that the data you have already stored is encoded incorrectly. SHOW CREATE TABLE will tell you what encoding _should_ be in the fields. SELECT HEX() will give you clues of what _is_ in the fields.

SET NAMES (and 'char%') relate to whether the bytes are transcoded on the way in/out of the server.

See also
http://mysql.rjweb.org/doc.php/charcoll

Options: ReplyQuote


Subject
Written By
Posted
Re: Charset SESSION vs GLOBAL
March 26, 2011 03:37PM
March 27, 2011 07:17PM
March 28, 2011 12:26AM


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.