Page 1 of 1

content-encoding

Posted: Thu Feb 17, 2005 4:50 pm
by jonemo
I have a script that has to deliver its output als xml, therefore i use

Code: Select all

header("Content-Type: text/xml");
that works nearly fine. the only problem is, that german umlauts and other special characters get converted to ?.

so i thought i should add the right encryption to somewhere and thought,

Code: Select all

header("Content-Encoding: ISO-8859-1");
would do it. however, the umlauts are still ?s.

so whats the correct header value?

Posted: Thu Feb 17, 2005 4:57 pm
by feyd

Code: Select all

header('Content-Type: text/html;charset=ISO-8859-1');
try that.