#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 neteler): Replying to [comment:6 annakrat]: > 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. Conditional GRASS_DB_ENCODING which might be used for inspiration in this regards: https://github.com/OSGeo/grass/blob/b5b00f972917e38a6a912f7c385ddbf791889e70/gui/wxpython/dbmgr/base.py#L971 -- Ticket URL: <https://trac.osgeo.org/grass/ticket/3925#comment:7> GRASS GIS <https://grass.osgeo.org>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev