CSV driver does not detect BOM header for UTF-8 files on Windows XP
|Reported by:||jpalmer||Owned by:||Even Rouault|
|Severity:||normal||Keywords:||Windows XP, CSV, OGR|
When I run ogrinfo from my Windows XP commandline on a UTF-8 file with a BOM header, then header is not ignored and becomes part of the first attribute fieldname.
ogrinfo temp.csv temp INFO: Open of `temp.csv'
using driver `CSV' successful.
Layer name: temp Geometry: Unknown (any) Feature Count: 2 Layer SRS WKT: (unknown) ∩╗┐id: String (0.0) name: String (0.0) WKT: String (0.0) OGRFeature(temp):1
∩╗┐id (String) = 426 name (String) = Colac Bay/┼îraka WKT (String) = LOC
∩╗┐id (String) = 427 name (String) = Colac Bay/┼îraka WKT (String) = BAY
Note this doesn't happen when I run this on my Ubuntu UTF-8 console.