Page is a not externally linkable
- WebmasterWorld
-- Webmaster General
---- struggling with chinese characters, in MySQL/PHP


httpwebwitch - 4:13 pm on Jul 15, 2010 (gmt 0)


@UFriendly,
I added mysql_set_charset('utf8'), then viewed the page. The Chinese looked like å¤§çš„ç” etc.

Then I edited that item and resaved it, and now it looks OK again on the page.

So it was working before, and now it's working after. Status quo. However now I have a bunch of data that needs to be edited & re-encoded, especially all the Spanish stuff with their funny accents.

So now I wonder, what is the real state of things in my database? are things being encoded, double-encoded, anti-encoded, or what. If I export the database into Excel, what will I see?

headdesk.
Is this job done yet? :)


Thread source:: http://www.webmasterworld.com/webmaster/4168927.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com