You are here:  » UTF-8 Conflit


UTF-8 Conflit

Submitted by amibrasil on Fri, 2006-11-24 03:54 in

Hi David,

I am using an automatic translator, forgives me any error.

I need your help. My template searchs notice in google news and produts in affiliated program but I do not obtain to show the characters with accent correctly. If I arrange a side I have problems with the other.

One sample in http://www.comprarnainternet.com.br/eletronicos/cnet.php in rodape (noticias em destaque).

Please help me.

Thanks

Lucy

Submitted by support on Fri, 2006-11-24 08:21

Hello Lucy,

If you feed contains accented characters and they are not being displayed properly you probably need to send the appropriate character set header along with your HTML.

In your script, try adding this code right at the top:

header("Content-Type: text/html;charset=utf-8");

The utf-8 characters should then be displayed correctly.

Hope this helps!
Cheers,
David.