I'm making small module/plugin for my future CMS/Framework. I wanted it from begining to be with multi-language support.
- I set my new database to
utf8_unicode_ci
(I read that it is more accurate, thenutf8_general_ci
) - Set my files to UTF-8 without BOM
- Every page has in head
Content-Type: text/html; charset=utf8
When I register new user new record is added to user table. I tried to register user with russian nickname. When I inserted it to form it was fine. Added record to table. Signed in and showed greetings fine in russian too. But when I looked at the record in table the nickname was some gibberish characters. I tried all encodings in browser. Nothing helped.
UPD: I even tried to view data with SQLyog. Shows same as phpMyAdmin.
Small screenshot of what I mean
Could anyone explain to me, what might be the problem?