How to encode cyrillic in mysql?

Posted by Premke on Stack Overflow See other posts from Stack Overflow or by Premke
Published on 2010-12-26T15:49:56Z Indexed on 2010/12/26 15:53 UTC
Read the original article Hit count: 346

Filed under:
|
|

Hello fellows, what's up? :-)
I have one problem and i hope you can help me with it.

One friend of mine have a simple solid html website and i implemented little php; CRUD system for articles... problem i came across is placing and getting cyrillic characters from mysql database.

What i want to achive is next:
In the main navigation there are some separated sections, whose names, ids and item's order i want to place in mysql and than to pull names and to put each name as a link. Names are supposed to be cyrillic characters.

The problem comes when i, using php mysql_fetch_assoc function, try to display names which are inserted with cyrillic characters in database row, collation of row is utf8_general_ci, and i end with ????? insted of original characters. If i submit cyrillic characters via submit form to mysql it shows something like this У.

How can i solve this, thanks in advance!? :-)

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql