Menu

Convert ANSI to UTF-8... ¿bug?

2009-06-12
2012-11-13
  • David Burgos

    David Burgos - 2009-06-12

    Hi!
    I usually use Notepad ++ but I never had some errors in PHP when I convert some PHP files from ANSI encoding to UTF-8 whose origin was the insertion of some characters (ï »¿) at the start of files, invisible in Notepad++. Is it a bug? How do I solve it for next time?
    Thanks very much

     
    • Arkwyd

      Arkwyd - 2009-06-16

      Perhaps you are talking about BOM.  Some UTF-8 files store 0xEF, 0xBB, 0xBF as first three bytes, to indicate the content encoding is UTF-8, while others don't.
      Try "convert to UTF-8 without BOM".  I wish it helps.

       
MongoDB Logo MongoDB