Validation error: Byte-Order Mark found in UTF-8 File

后端 未结 2 1008
天涯浪人
天涯浪人 2020-12-17 00:00

I\'m working on a website and while displaying it on Firefox is fine, on IE I\'ve got a lot of problems. I used the w3c validator and I got a lot of strange errors.

相关标签:
2条回答
  • 2020-12-17 00:42

    if using notepad++, use Convert to UTF-8 without BOM.

    if you are using php, make sure that any included/required file is in either in ascii or UTF without BOM, as php doesn't handle non-ascii file very good (this one gave me a headache once)

    you could try converting your files to ascii, if you don't need utf characters

    on your <meta charset > try writing the value within quotes

    0 讨论(0)
  • 2020-12-17 00:58

    The free text editor PSPad has a hex editing mode which is very handy for seeing exactly what you really have in your text files.

    0 讨论(0)
提交回复
热议问题