I was facing same issue for UTF-8 characters, Everything was working on live server and staging server, but sometime it's breaking on my dev machine. The behavior was so strange, some times characters was encoded properly but on random page reload it was start breaking with Diamond Charters'���เห็นอเวิลด์!���' or Question mark'??�เห็นอเวิลด์!???' or 85% data was rendering properly 'เห็นอเวิลด์!?��' but rest 15% was showing unmatched characters. I was looking to fix the issue. So, started with my checklist
1 - Check if Character Header Added in HTML
2 - Check if data proper saved in MySQL table
3 - Check if MySQL has proper encoding settings for UTF-8
4 - Check if Apache has Setting to deal with UTF-8 Character set
5 - Check if simple PHP can echo "เห็นอเวิลด์" output same as input "เห็นอเวิลด์"
6 - Check if PHP sending proper Headers output
7 - Check if MySQL Query getting same data "เห็นอเวิลด์"
8 - Check if "เห็นอเวิลด์" has some html characters, deal with them properly
9 - Check if "เห็นอเวิลด์" passing through any html encode decode function
10- Check if .htaccess all set to deal with UTF-8 Character set
Check all the above list to figure out where something..breaking.
PLease check below mentioned solution.
When you use any regional language apart from English at that time your
Charset
will beutf8
and setCollection
=utf8_general_ci
.Let me know if it not works.
Now, try to insert the telugu characters value and save it.
I was facing same issue for
UTF-8 characters
, Everything was working on live server and staging server, but sometime it's breaking on my dev machine. The behavior was so strange, some times characters was encoded properly but on random page reload it was start breaking withDiamond Charters
'���เห็นอเวิลด์!���'
orQuestion mark
'??�เห็นอเวิลด์!???'
or 85% data was rendering properly'เห็นอเวิลด์!?��'
but rest 15% was showing unmatched characters. I was looking to fix the issue. So, started with my checklistGive a try (I am using Codeigniter):
Good luck!! :)