MySQL Forums
Forum List  »  PHP

Re: MySQL + Collation (utf8_swedish_ci){urgent}
Posted by: Rick James
Date: March 10, 2009 12:07AM

First, is the database incorrect, or is the select incorrect? This might answer that question:

ArbetsförhÄllanden

SELECT LENGTH(col), CHAR_LENGTH(col), HEX(col) FROM tbl;
_should_ give you 18, 20, then 20 hex pairs, including double characters for the accented letters.

If you don't get 18 and 20, then you (probably) _inserted_ the text without properly using SET NAMES utf8.

If you do get 18 and 20, then your settings are (probably) incorrect for the _select_.

Options: ReplyQuote


Subject
Written By
Posted
Re: MySQL + Collation (utf8_swedish_ci){urgent}
March 10, 2009 12:07AM


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.