Opened 17 years ago

Closed 15 years ago

#1783 closed defect (fixed)

corrupted utf-8 XML output files

Reported by: darkblueB Owned by: warmerdam
Priority: normal Milestone:
Component: OGR_SF Version: unspecified
Severity: normal Keywords: kml gml
Cc: Mateusz Łoskot

Description

converting a shape file to GML or KML may result in corrupted utf-8 encoding. The xml header for GML or KML will claim utf-8.

As per a discussion on IRC, a simple step toward file integrity is to ensure that string data input is not changed upon output. (If the result of a conversion is known to produce invalid utf-8 XML, then perhaps a switch on the command line to turn off the indication in the header in the output file would be appropriate) At any rate, the current situation can result in problematic files with no warnings.

Change History (2)

comment:1 by Mateusz Łoskot, 16 years ago

Cc: Mateusz Łoskot added

comment:2 by Even Rouault, 15 years ago

Resolution: fixed
Status: newclosed

See #2971 that forces XML output to be ASCII if it is not valid UTF-8.

Note: See TracTickets for help on using tickets.