Reputation: 383
I have some problems with mb_convert_encoding. In the database I have table:
Website is in UTF-8. And db connection to MySQL is in UTF-8 too. I can't change connection settings, but I can change db table.
I was thinking that I can double decode it and get UTF-8. For now it's looks like so:
string 'КвеÑÑ‚Ñ‹.' (length=27)
And I've tried next solution:
mb_convert_encoding($str, 'Windows-1251', 'UTF-8');
Out:
string '?????�???�?�.' (length=13)
Upvotes: 0
Views: 989