Re: Insert UTF8 data in latin1 column
Posted by: Rick James
Date: November 20, 2009 06:59PM

It is impossible to have a _column_ that is utf8 encoded, but collation latin1_bin. I emphasize the column, because the table settings are simply defaults in case you do not override them on the column definition.

Please do
SHOW CREATE TABLE tablename \G
to see how the system thinks the column is declared.

Yes, probably SET NAMES is needed somewhere. But what you use with that depends on the encoding of the bytes in your _application_, not in the table.

Options: ReplyQuote


Subject
Views
Written By
Posted
5528
November 10, 2009 07:05AM
Re: Insert UTF8 data in latin1 column
2679
November 20, 2009 06:59PM


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.