Jump to content

PHP/HTML Charset Issue


Cless

Recommended Posts

At the top of my database connection file, which is included in every other file, I have this line;

 

header("content-type: text/html; charset=UTF-8");

 

Which basically changes the character set to UTF-8. Anyway, when it is set to this, all é characters on the content are shown correctly. However, in the page title (defined with <title>blah</title), é is shown as é.

 

If changed to ISO-8859-1, the title is displayed correctly, but the content is not... so I'm not really sure.

 

Basically, is there a way to fix this or something else possibly causing the problem?

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/135550-phphtml-charset-issue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.