How do I get rid of a Byte Order Mark: Difference between revisions From Online Manual

Jump to: navigation, search
(Based on information from Mr. Phil in http://www.simplemachines.org/community/index.php?topic=472071.msg3299772#msg3299772)
 
No edit summary
Line 5: Line 5:
To solve this problem:
To solve this problem:
# Figure out which files have recently been edited
# Figure out which files have recently been edited
# One by one, open them in ANSI mode, not in UTF-8 mode (the mark may be hidden if you open the file in UTF-8 mode)
## Once you find the file causing the problem, you would need to resave the file without BOM, you would need a decent text editor like notepad++ to do this.
# Each time you find a file that begins with this character,
## If your editor has an option to save the file without the Byte Order Mark, use this option to save the file. In many cases, this will fix the problem.
## If the above option does not work, edit in ANSI-only mode, remove the mark, and save.
## If you need to edit the file in UTF-8  mode, use an editor which will allow you to "save without Byte Order Mark"
## If you need to edit the file in UTF-8  mode, use an editor which will allow you to "save without Byte Order Mark"
[[Category:FAQ]]
[[Category:FAQ]]

Revision as of 17:54, 26 March 2012

In some browsers, you see the character  somewhere in your forum, often in the upper left. This is a UTF-8 "Byte Order Mark". It got into one of your forum files when somebody editted and saved that file while editing in UTF-8 mode Microsoft editors are often blamed for adding this mark at the beginning of files.

To solve this problem:

  1. Figure out which files have recently been edited
    1. Once you find the file causing the problem, you would need to resave the file without BOM, you would need a decent text editor like notepad++ to do this.
    2. If you need to edit the file in UTF-8 mode, use an editor which will allow you to "save without Byte Order Mark"


Advertisement: