UTF-8 Database Problem

Posted by Danten on Stack Overflow See other posts from Stack Overflow or by Danten
Published on 2010-04-11T00:41:39Z Indexed on 2010/04/11 0:53 UTC
Read the original article Hit count: 535

Filed under:
|
|
|

I've a MySQL table that has a UTF-8 charset and upon attempting to insert to it via a PHP form, the database gives the following error:

PDOStatement::execute(): SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\xE8' for column ...

The character in question is 'è', yet I don't see why this should be a problem considering the database and table are set to UTF-8.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about sql