content-encoding

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jonemo
Forum Commoner
Posts: 28
Joined: Wed Feb 09, 2005 1:32 pm
Location: london, uk

content-encoding

Post 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?
Last edited by jonemo on Fri Feb 18, 2005 10:50 am, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Code: Select all

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