MySQL Forums
Forum List  »  MyISAM

Re: Problems with character
Posted by: Stefano Moncelli
Date: March 31, 2006 05:41AM

I have installed mysql-5.0.19 on Windows and I have repeated the test.
I use EMS MySQL Manager as client.

I tried with EMS:

insert into test values('cliché');
select name,char_length(name),length(name) from t1;
+--------+-------------------+--------------+
| name | char_length(name) | length(name) |
+--------+-------------------+--------------+
| cliché | 6 | 7 |
+--------+-------------------+--------------+

but from 'mysql' command line client:

select name,char_length(name),length(name) from t1;
+--------+-------------------+--------------+
| name | char_length(name) | length(name) |
+--------+-------------------+--------------+
| clichÚ | 6 | 7 |
+--------+-------------------+--------------+

On the other side, if I try to insert from 'mysql' command line client
and read from EMS I obtain:
+--------+-------------------+--------------+
| name | char_length(name) | length(name) |
+--------+-------------------+--------------+
| clich‚ | 6 | 8 |
+--------+-------------------+--------------+

Do you kwnow why this happens?

Regards,

-- Stefano

Options: ReplyQuote


Subject
Views
Written By
Posted
2821
March 30, 2006 09:34AM
1719
March 31, 2006 01:43AM
Re: Problems with character
1841
March 31, 2006 05:41AM
1850
April 03, 2006 04:58AM
1429
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.