Jump to content

How to display odd characters in HTML?


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 post
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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...