Page 1 of 1

PHP encoding problem [UTF-8] : Urgent ,Please help

Posted: Fri Nov 02, 2007 12:07 am
by sanjeevk
Hi everyone

I had a site running in two llanguages. For this to support multi language i had made my mysql database in UTF-8 format . Similarly i have inclluded <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">.
Now i have problems with the meta tags and static javascript.
example for
<meta name="description" content="L'annuaire des forums francophones sur le Php et création de forums à la demande">
i have used
<meta name="description" content="L'annuaire des forums francophones sur le Php et cr&eacute;ation de forums &agrave; la demande">
[Please note création is written as cr&eacute;ation]
to support the UTF-8. But the problem is it is not working well . In the site when i see the view source the contents i get is
<meta name="description" content="L'annuaire des forums francophones sur le Php et cr&eacute;ation de forums &agrave; la demande">
But the case is i need it to be displayed as
<meta name="description" content="L'annuaire des forums francophones sur le Php et création de forums à la demande">
Please anyone can help me solve this problem . My site is Live and i have problem . Please help.

Posted: Fri Nov 02, 2007 12:50 am
by s.dot
&eacute; is an entity. Is it stored this way?

html_entity_decode() maybe?

Posted: Fri Nov 02, 2007 1:13 am
by sanjeevk
scottayy wrote:&eacute; is an entity. Is it stored this way?

html_entity_decode() maybe?
to display french character é i used &eacute;.
similar is the case for other french character.
Now in my page when i see the source by view source, i get &eacute; in place of é in meta keywords and description. But i need it to be displayed as é.