Open mplough-kobold opened 2 months ago
Yes, I have seen this error recently too.
@mplough-kobold Can you share the sample gdb with the ISO/IEC 8859-1
encoding?
@serban-seeq From SIGÉOM, see https://gq.mines.gouv.qc.ca/documents/EXAMINE/GM67278/. In GM67278_1_CD1.ZIP there exists a file called Deborah_Lake.gdb
. The file is too large to upload here but the source is publicly available.
We often receive GDB files from contractors that contain data descriptions such as
µT
, but the descriptions are encoded using latin1. As a result, theµ
character is encoded as0xB5
rather than0xC2 0xB5
as it would be in UTF-8.Since Python strings are Unicode and gxpy loads strings in the default fashion, we end up with errors like this:
Handling other character encodings (or perhaps only latin1 if that's what GDB uses) would allow us to open these files with gxpy.