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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php