Msg#: 3473715 posted 1:17 pm on Oct 10, 2007 (gmt 0)
Hi - I have a Chinese site that had its charset as UTF-8. we are storing text as UTF-8 in MySQL5 db. Quite a few of my users in China that have GB2312 encoding set in their IE browsers can't see the site. We changed the charset in ph to be GB2312 but some characters are coming out odd like as? (question marks).
We would like to store as UTF-8 and display as GB2312 - but without the funny chars.
Msg#: 3473715 posted 12:30 pm on Oct 12, 2007 (gmt 0)
Hi - but are Chinese users that only have gb2312 browser encoding able to see the site properly?
The site's been tested with IE5, IE6, IE7, Opera, Firefox, and Safari. I've tested it with Traditional and Simplified Chinese operating systems (Windows & Mac) as well as Japanese and English. The site has never failed to show up in that range of software and operating systems.
Sorry, we're not alowed to post URLs to our own sites or example sites at WebmasterWorld.
Msg#: 3473715 posted 11:33 pm on Oct 12, 2007 (gmt 0)
Let's keep the conversation in the forums. Why not post a snippet of code from your site as I suggested in my first message? I even posted an example of the code I was looking for from your site.
This isn't a question of looking at example sites, but rather standard code and possibly your server setup. As you say in your first post, your data is in UTF-8 already. You're probably using PHP too, correct? Do you have mbstring setup properly?
Again, a snippet from your code might help our understanding of your issue. Another thing you might want to try is to check whether your HTML is valid with a validator [validator.w3.org].