thank you moshu for your attention, i got little bit nervous because of all this problem, so i had to eat a cake to calm down ??
at least i got to the initial problem, at first I made a mistake and put in wp-db after line 43
mysql_query(“SET NAMES ‘utf8′”);
so everything got messed up but then I put
mysql_query(“SET NAMES ‘utf8′”, $conn);
and at least everything went back to normal EXCEPT TWO LETTERS. But I had the same situation before putting SET NAMES, so it didn’t help.
OK I’ll try to explain but I have to say that this is not the problem in WordPress only, this is smth related to mysql encodings… I have the same problem with my Phorum program.
I use UTF-8 everywhere in WordPress and I write it in the Lithuanian language: https://mokslas.ktv.lt/
I didn’t notice anything wrong when writing posts, all the letters show up correctly, by the way, beside Latin letters Lithuanian has additional letters: ????????ū?
Problems arise when I try to restore posts, etc. from a backup copy and problems only with TWO letters “??” and capital “?” – you cannot restore them; strange characters show up instead of them when restoring from a backup. You can see this in the first experimental post: https://mokslas.ktv.lt/
I have read in forums that this happens with some characters, a bug in mysql or something. But all the guys say that SET NAMES in php code helps; in my case it made no difference though I tried to back through WordPress and through phpMyAdmin.
Maybe there smth wrong when i open .sql backup file in editors like notepad but this is hardly a problem because only two letters are affected. Or maybe
mysql_query(“SET NAMES ‘utf8′”, $conn);
should be put in some other places in other files
or maybe some other queries should be made
I don’t know.