Recently, I encountered some problems while I try to insert some Russian Cyrillic text in a database. I'm on the framework symfony2, I'm using Doctrine ORM and a Nginx web server. The database is a PostgreSql. The problem happens sometimes when I try to insert a russian text in a column, I get a 500 Internal Server Error with this message :
SQLSTATE[22021]: Character not in repertoire: 7 ERREUR: invalid byte sequence for encoding « UTF8 » : 0xd1
And the most weird is that happens in a column and not an other with the same string... My php files and DB are encoding correctly in UTF8.
Is there somebody already encountered the same problem and achieve to solve it ? Thanks a lot for the help.
The \l request show an encoding UTF8 and Collate and Ctype fr_FR.UTF-8
server_encoding UTF8
client_encoding UTF8
Is that the problem ?