Reputation: 363
I tried with mysqli_set_charset("cp1251")
and with utf8
, not working.
I've tryed to insert string in sql like this htmlentities($str, ENT_QUOTES, "UTF-8");
and for accent letters working perfectly but for russian characters the result is like this Øóôóòèíñêèé Ìèõàèë.
Thanks.
Upvotes: 0
Views: 1032
Reputation: 126
It is important to use the same character set in the complete data chain. Mixed encodings will always cause problems.
Upvotes: 2