Forum Moderators: coopster

Message Too Old, No Replies

Strange encoding problem

         

janbeeu

2:43 am on Mar 23, 2007 (gmt 0)

10+ Year Member



I now know what a PHP-headache is like. Okay, I'm new to PHP, I read my eyes out, study, try-out etc. In short, I want to learn and master PHP but I ran accross a problem that just doesn't make sense (to me that is).

I made an order form with a PHP generator and adusted it to how I want it to be. The generator generates three files .ini, .lib.php and *.php where the * is the name of the file with the actual order form.

I want to use the form on a site. As the site is in Greek, I put


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:&#8206;//www.w3.org/1999/xhtml" xml:lang="el" lang="el">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

at the top of the *.php page.

Oneline the page displays the Greek characters perfectly in IE7 and gives mubo-jumbo characters in FF where the page information says the page is in standardmode with charset ISO-8859-1, content-type is text/html; charset=utf8 and content-language is el

Now, the form also sends a confirmation mail in Greek. To test this I had it send to my normal e-mail address (in Outlook) and to my gmail which I open in FF. Here's the funny part. In outlook the confirmation mail is unreadable (mubo-jumbo characters) and in gmail (FF)the message is displayed as it should.

Wait... I'm looking for a word... ah yes, HELP!
I have tried every combinatiion that exists and a few that probably don't, tested, re-tested and have shorter fingers now from filling out the form a trillion times.

As I said above, I very much want to lurn but at the moment, I'm lost and loosing my mind. I have no idea how to solve this. If anyone might have any idea, just tell me which codes you want posted here.
I want my mind back! ;-)

coopster

9:57 am on Mar 23, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



What's this?
<html xmlns="http:&#8206;//www.w3.org/1999/xhtml" xml:lang="el" lang="el">