[josm-dev] presets file with byte order mark exception
Martijn van Oosterhout
kleptog at gmail.com
Tue Oct 30 12:53:07 GMT 2007
On 10/27/07, Igor Brejc <igor.brejc at gmail.com> wrote:
> When I start JOSM with my custom preset file which is in UTF-8 and has
> the byte order mark (http://unicode.org/faq/utf_bom.html#BOM), I get the
> following exception:
That completely busted. UTF-8 does not need a byte-order-mark, only
UTF-16 does. That windows programs add a BOM anyway even when they're
not supposed to is not something JOSM can do anything about...
In fact, don't think it can, the XML parsing happens on a much lower
level, there is no opportunity for JOSM to mangle the file beforehand.
Have a nice day,
--
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/
More information about the josm-dev
mailing list