Kaynağa Gözat

wxGUI/dbmgr: assuming utf-8 encoding for text attributes

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54840 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 yıl önce
ebeveyn
işleme
1f2756d994
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      gui/wxpython/dbmgr/vinfo.py

+ 2 - 2
gui/wxpython/dbmgr/vinfo.py

@@ -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 @@ def unicodeValue(value):
     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')