Page 1 of 1
Foreign Characters
Posted: Thu Feb 14, 2008 4:55 am
by aceconcepts
Hi,
I have a user of my system in China and they have recorded some details and they appear as Chinese characters.
Is there a way I can encode/decode the characters?
Thanks
Re: Foreign Characters
Posted: Thu Feb 14, 2008 7:46 am
by Christopher
Could you clarify what "my system" and "have recorded some details" mean? I assume you mean they have used your website and the website has save some input into a database...
Re: Foreign Characters
Posted: Thu Feb 14, 2008 7:56 am
by aceconcepts
Certainly,
my system is basically a registration process built using PHP and MySQL as a database.
When a "registrant" enters their details - name, address etc... their details are then inserted into the necessary MySQL database tables.
All tables are encoded as UTF-8.
I hope this give sufficient insight.
Re: Foreign Characters
Posted: Thu Feb 14, 2008 8:02 am
by Christopher
What character set do you specify in the HTML header for your pages?
Re: Foreign Characters
Posted: Thu Feb 14, 2008 8:20 am
by aceconcepts
Code: Select all
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Re: Foreign Characters
Posted: Fri Feb 15, 2008 10:29 am
by aceconcepts
Can anyone help?
Re: Foreign Characters
Posted: Fri Feb 15, 2008 1:09 pm
by Christopher
So your database is set to UTF-8 and your page is displaying UTF-8, that means that the characters are a different character set. Do you have a guess what character set they use?