Results 1 to 1 of 1
Thread: PHP character encoding issues.
May 1, 2009, 03:44 #1
- Join Date
- Jan 2009
- 0 Post(s)
- 0 Thread(s)
PHP character encoding issues.
I am a newby at PHP and am trying to get a simple php form to work for my friends site. I have posted here in the past in regards to this form and have progressed quite a lot thanks to lots of hard work and lots of help from you guys but I am still having troubles.
I need some advice on character encoding as when the email sends an special charaters such as á ó í and ú the are received scrambled.
my code is as follows:
I have added: header
('Content-type: text/html; charset=utf-8');
and tried to add
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
to the top of the page but it didnt seem to do anything.I also tried
mb_detect_encoding($html, "ascii, cp1252, iso-8859-1, utf-8")
but that just showed a blank page when it tried to process and now have completely ran out of ideas. If anyone can give me a little advice or just some pointers it would be much appreciated.
ps. I know I have programmed the code to send 2 emails. I have done this as individually every declaration (I am not sure I am using the right term) works individually but when I send them all together it just does not send the email. This is a secondary concern for me at the moment, I just need to get the character encoding working.Jan