[GRASS-SVN] r54840 - grass/trunk/gui/wxpython/dbmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Feb 2 09:06:19 PST 2013


Author: martinl
Date: 2013-02-02 09:06:19 -0800 (Sat, 02 Feb 2013)
New Revision: 54840

Modified:
   grass/trunk/gui/wxpython/dbmgr/vinfo.py
Log:
wxGUI/dbmgr: assuming utf-8 encoding for text attributes


Modified: grass/trunk/gui/wxpython/dbmgr/vinfo.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/vinfo.py	2013-02-02 17:01:59 UTC (rev 54839)
+++ grass/trunk/gui/wxpython/dbmgr/vinfo.py	2013-02-02 17:06:19 UTC (rev 54840)
@@ -6,7 +6,7 @@
 List of classes:
  - vinfo::VectorDBInfo
 
-(C) 2007-2011 by the GRASS Development Team
+(C) 2007-2013 by the GRASS Development Team
 
 This program is free software under the GNU General Public License
 (>=v2). Read the file COPYING that comes with GRASS for details.
@@ -34,7 +34,7 @@
     if not enc and 'GRASS_DB_ENCODING' in os.environ:
         enc = os.environ['GRASS_DB_ENCODING']
     else:
-        enc = 'ascii'
+        enc = 'utf-8' # assuming UTF-8
     
     return unicode(value, enc, errors = 'replace')
     



More information about the grass-commit mailing list