Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Mapfile that is encoded as UTF-8 with BOM is not accepted #5194
Mapserver 7.0 does not accept mapfiles if they start with BOM. It seems that BOM has no effect in UTF-8 encoding http://www.unicode.org/faq/utf_bom.html#bom5 but some software still write it by default to text files, for example Notepad++
I think that making Mapserver to accept starting BOM could not break anything. Minimum action would be to mention the denial of BOM in the migration guide and in the mapfile documentation,
@sdlime, would you rather explain to Windows users why they can't create a proper mapfile with Notepad or why "UTF-8" selected from the menu of Notepad++ is not the correct one but they must select "UTF-8 without BOM" and so on? I think that this fix is friendly for the users and developers as well.