Cless Posted December 4, 2008 Share Posted December 4, 2008 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 More sharing options...
Mchl Posted December 4, 2008 Share Posted December 4, 2008 Save your source file (all of them) as UTF-8 without BOM (byte order mark) Link to comment https://forums.phpfreaks.com/topic/135550-phphtml-charset-issue/#findComment-706141 Share on other sites More sharing options...
Cless Posted December 5, 2008 Author Share Posted December 5, 2008 Huh? What do you mean? Link to comment https://forums.phpfreaks.com/topic/135550-phphtml-charset-issue/#findComment-706422 Share on other sites More sharing options...
Mchl Posted December 5, 2008 Share Posted December 5, 2008 I mean: a source file has an encoding too. If your source is encoded in ASCII, but there's utf-8 involved, there will be glitches. Check if your editor has the ability to save files as utf-8. If not: Notepad++ has. Link to comment https://forums.phpfreaks.com/topic/135550-phphtml-charset-issue/#findComment-706588 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.