Opened 14 years ago
Closed 14 years ago
#5226 closed enhancement (fixed)
XML encodings and byte-order marker (BOM) support
Reported by: | pinkduck | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | XML, encoding, BOM, UTF-16, UTF-16LE, UTF16-BE, UTF-8, Byte-order Marker | Cc: |
Description
JOSM 3366 loads OSM files in UTF-8 without optional leading byte-order marker, but fails if the optional BOM is present. It does not currently accept UTF16 (with or without byte-order marker), or UTF16-LE or UTF16-BE encodings. Where the .osm load fails JOSM currently reports either:
Could not read file '<filename>'.
Error is:
Line 1 column 1: Content is now allowed in prolog.
or
Could not read file '<filename>'.
Error is:
Line 1 column 2: The markup in the document preceding the root element must be well-formed.
Supporting standard XML encodings would improve cross-platform support and prevent needless errors for valid XML files.
http://en.wikipedia.org/wiki/Mapping_of_Unicode_characters#Byte_order_mark
http://en.wikipedia.org/wiki/UTF-16#Byte_order_encoding_schemes
Attachments (1)
Change History (3)
by , 14 years ago
Attachment: | Encoding Tests.zip added |
---|
comment:1 by , 14 years ago
Type: | defect → enhancement |
---|
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Example OSM file encodings to test against