SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: UTF8 - BOM

  1. #1
    SitePoint Zealot
    Join Date
    Mar 2003
    Location
    scarborough
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    UTF8 - BOM

    I have been having problems with UTF8 files and BOM's. I have my own forum and suddenly the code stopped working. I was using notepad++. But even though I have set it to UTF8 without BOM I seem to end up with ANSI files.

    What can I do?

  2. #2
    SitePoint Wizard bronze trophy Jeff Mott's Avatar
    Join Date
    Jul 2009
    Posts
    1,246
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    If the characters in your code happen to be within the ASCII range, then UTF-8 without BOM is indistinguishable from ASCII. For me, at least, that's usually why Notepadd++ will sometimes think a file is ANSI when I open it again. It doesn't necessarily mean any bytes were altered.
    "First make it work. Then make it better."


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •