By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,828 Members | 1,223 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,828 IT Pros & Developers. It's quick & easy.

Some UTF-8 character not sent unchanged to MySQL

P: n/a
When I submit a query containing a UTF-8 representation (hex
value 0xC48D) of the Unicode character &#x010D (lowercase c with
caron) to the MySQL server using mysql_query, sniffing the
network traffic reveals that the character is sent as 0xC43F,
which is not a valid UTF-8 character.

Some other Unicode characters are also problematic, including
&#x0110 and &#x00C1, but they are both sent as 0xC33F.

The MySQL table has been created with CHARACTER SET utf8.

Is this a PHP bug or a MySQL bug? Or am I misunderstanding
something here? Can someone confirm this behaviour?

I'm using PHP 5.0.2, MySQL 4.1.6gamma and Apache 2.0.49-27.16 on
SuSE Linux Professional 9.1. MySQL and PHP have been compiled by
me, Apache is the SuSE default.

Thanks for any help.

--
Stian Grytøyr

Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.