[GRASS-dev] [GRASS GIS] #3925: winGRASS 7.8.1dev: 'charmap' codec can't decode byte 0x9d - issue in vector attribute data handling (e.g. opening attribute table, v.report, etc)
GRASS GIS
trac at osgeo.org
Sun Oct 27 20:18:10 PDT 2019
#3925: winGRASS 7.8.1dev: 'charmap' codec can't decode byte 0x9d - issue in vector
attribute data handling (e.g. opening attribute table, v.report, etc)
----------------------+------------------------------------
Reporter: hellik | Owner: grass-dev@…
Type: defect | Status: new
Priority: blocker | Milestone: 7.8.1
Component: Vector | Version: git-releasebranch78
Resolution: | Keywords: python3, py3, wingrass
CPU: x86-64 | Platform: MSWindows
----------------------+------------------------------------
Comment (by annakrat):
This is a larger problem. In case of geonames, they are encoded in utf8,
but the decode function uses local encoding. There is GRASS_DB_ENCODING,
which should in theory help, but it's not used in v.report and more
generally, it's not tied to individual tables and it's not user-friendly.
One practical way, which wouldn't solve this for all cases, but perhaps
majority is to have a new decode function for attribute data, which would
try first GRASS_DB_ENCODING if specified, then try decoding with local
encoding and if that doesn't work, use utf8.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3925#comment:6>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list