I18N UTF-8 and iso
| From: | kiran kumar | Date: | Sat, 20 Sep 2003 07:10:40 +0000 |
| Subject: | I18N UTF-8 and iso | ||
| Groups: | php.i18n | ||
| Request: | Send a blank email to php-i18n+get-615@lists.php.net to get a copy of this message | ||
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