MySQL Forums
Forum List  »  MyISAM

Re: Problems with character
Posted by: Ingo Strüwing
Date: March 31, 2006 01:43AM

Hi,

I cannot repeat it with 5.0.19 on Linux. It works.

Is it possible that the truncation happens on the client side? Which tool(s) did you use to check this.

I tried with the 'mysql' command line client:
mysql> insert into test values('cliché');
mysql> select name,char_length(name),length(name) from t1;
+--------+-------------------+--------------+
| name | char_length(name) | length(name) |
+--------+-------------------+--------------+
| cliché | 6 | 7 |
+--------+-------------------+--------------+

You can see that the 'é' is stored as two bytes internally, which is correct for UTF-8.

Regards

Ingo Strüwing, Senior Software Developer - Storage Engines
MySQL AB, www.mysql.com

Options: ReplyQuote


Subject
Views
Written By
Posted
2822
March 30, 2006 09:34AM
Re: Problems with character
1719
March 31, 2006 01:43AM
1842
March 31, 2006 05:41AM
1850
April 03, 2006 04:58AM
1430
April 04, 2006 11:08AM


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.