Forum Moderators: coopster

Message Too Old, No Replies

Web Form For Chinese Characters

I am having trouble with my php form on my site with my chinese submissions

         

DrewS

8:06 am on Nov 14, 2007 (gmt 0)

10+ Year Member



Hello,

I am a Chinese website that I have set-up with a contact form. The form was taken from the English site for my product. The form is a PHP script that sends the details of the form to an email address. All the submissions from china have come through with odd characters that make no sense.

I am not a programmer, so if anyone can give me an idea of where I might be going wrong, or show me an easy script that can handle my needs it would be appreciated.

Thanks

PHP_Chimp

5:05 pm on Nov 14, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is the encoding for the form? As if it was a UK form it may well be iso-8859-1, so this wont do very well for your Chinese characters.

Try UTF-8 character encoding the page where the form is found, as that should be able to cope with your characters. If there is a database involved then make sure it is set for UTF-8 as well, or it will corrupt your data.

phranque

2:35 am on Nov 15, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



this recent WebmasterWorld thread on japanese localization [webmasterworld.com] has much information that applies to your chinese character problems.