Re: Hi All

From: Date: Wed, 23 Jul 2003 09:14:00 +0000
Subject: Re: Hi All
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-156400@lists.php.net to get a copy of this message
Shishir Kumar Mishra wrote:
Hi All, I am reading one XML which has some german characters. I am sending this data to PHP script but when try to echo ;it prints some other character. eg. XML has "für" but output is coming like " für "; My script is like following: <?php $loc = "UTF-8"; putenv("LANG=$loc"); setlocale (LC_ALL, 'de_DE'); echo "<br>".$producttext[2]; ?> in XML file : producttext has value like "für" ; regards.. Shishir Kumar Mishra Agni Software (P) Ltd. www.agnisoft.com
What are you outputting to? Is it able to display UTF-8? Does it know that the string is UTF-8? an html page would tell a browser with: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> Peter

« previous php.general (#156400) next »