I18N UTF-8 and iso
"kiran kumar" <[email protected]>
| Newsgroups | gmane.comp.php.internationalization |
|---|---|
| Message-ID | <[email protected]> |
Hi All,
We are working on a site that stores words in different languages (english,german,spanish,french) .when storing the data it has not been stored in one format (either iso8859-1 or UTF-8) .now we are having problems when displaying ,what i do is convert the words to utf-8 and then display ..but some words are not getting displayed , if i reverse the process and change all the words to iso-8859-1 then some other words are not displayed properly . Can someone please help me out on this
<code>
// i even tried this header <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<?
echo header("Content-type: text/html; charset=UTF-8");
$str="AllpaÃÂ ";
print " before str is $str <br>";
echo " after ";
echo utf8_encode("str='$str'");
?>
</code>
Regards,
Kiran
___________________________________________________
Meet your old school or college friends from
1 Million + database...
Click here to reunite www.batchmates.com/rediff.asp
--
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php