[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
Mon Oct 28 05:39:37 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):

 Replying to [comment:7 neteler]:
 > 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

 Based on this if you don't have DB encoding specified (in GUI preferences
 or through env variable) then it uses utf-8. That's fine on systems with
 utf-8 but on Windows? Should it use local encoding instead? Since we need
 to work with Python 3 and unicode strings, the garbage in, garbage out
 doesn't work now and at the same time we don't know the encoding of the
 attributes.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3925#comment:8>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list