-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish Shapefile wih invalid byte sequence #660
Comments
Data package including cpg file |
The error is actually correct. Input file contains invalid byte sequence for UTF8 encoding. The invalid sequence is located e.g. in row OB.569399, column VlajkaText: Bílý list s červeným žerďovým pruhem širokým pětinu délky listu se třemi žlutými vztyčenými lipovými listy nad sebou. V bílém poli modrá vodorovná rozsocha se třemi rameny širokými pětinu šířky listu, krajní ramena vycházej� The incorrect sequence is visualized as �. It appears in more places in the file. |
I change label from bug to enhancement, because input file is broken. |
Could be solved e.g. by shp -> geojson -> iconv -> postgresql:
Some data types and floating point numbers and coordinates on higher decimal places may be different comparing to direct import shp -> postgresql. |
We can force ogr2ogr to export GeoJSON in UTF-8 with |
Text encoding of shapefile seems to get changed during the upload to Layman which results in DB error. Steps to reproduce the issue:
Upload this data to Layman using test client
data.zip
When opened in QGIS, encoding is set to UTF-8 and attribute values are correct
Publishing fails with this error
Download the input_file from Layman and open in QGIS
obce_body_5514.zip
Encoding is set to Win-1250 and field values are broken
The text was updated successfully, but these errors were encountered: