Author Topic: "Byte Order Mark" out of no where, why?  (Read 476 times)

0 Members and 1 Guest are viewing this topic.

Offline JiokahTopic starter

  • Irregular
  • Posts: 19
    • View Profile
"Byte Order Mark" out of no where, why?
« on: December 07, 2008, 08:36:57 AM »
Hey guys,

Sometimes when I screw up my code, I find a Byte Order Mark (), at the top of the page, and usually (but not always) it's alone. I'm not sure, but I think I get it most when I screw something up with the output buffer. And yes, when I switch to UTF-8 is just goes away, but my question is why does it appear there in the first place? I always fix my code to get rid of it but have never really found out what ever it was that caused it. Any ideas?

Thanks!
-Matthew

Offline kenrbnsn

  • Guru
  • Freak!
  • *
  • Posts: 9,708
  • Gender: Male
    • View Profile
Re: "Byte Order Mark" out of no where, why?
« Reply #1 on: December 07, 2008, 10:39:46 AM »
Make sure the editor you're using is set to write plain ASCII text, not UTF-8.

Ken

Offline JiokahTopic starter

  • Irregular
  • Posts: 19
    • View Profile
Re: "Byte Order Mark" out of no where, why?
« Reply #2 on: December 08, 2008, 07:28:16 PM »
oohh, in fact....I do have notepad++ set to UTF-8. I'll have to fuddle around to see where/why it's putting that mark in only sometimes, I'm just rather curious. Thanks a ton! That little mystery was bugging me.