Jump to content

How to display odd characters in HTML?


reportingsjr

Recommended Posts

Ah, I figured it out! You don't save it as utf-8, you have to save it as utf-8 without BOM. You can do this in notepad++ by going to the format menu, tick ascii, and then utf-8 without BOM, and save. Also you need to set the content-type header as UTF-8.

Link to comment
Share on other sites

Ah, I figured it out! You don't save it as utf-8, you have to save it as utf-8 without BOM. You can do this in notepad++ by going to the format menu, tick ascii, and then utf-8 without BOM, and save. Also you need to set the content-type header as UTF-8.
I never use BOM for compatability's sake.... never thought having it actually shatters the encoding itself too.
Link to comment
Share on other sites

It didn't shatter the encoding, I guess the BOM is considered output or something, so it acts like a sort of echo and if you try to send any headers after that it wont let you. I'm just glad it's all fixed :).

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...