|
@@ -6,7 +6,7 @@
|
|
|
List of classes:
|
|
|
- VectorDBInfo
|
|
|
|
|
|
-(C) 2007-2010 by the GRASS Development Team
|
|
|
+(C) 2007-2011 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
|
|
@@ -28,6 +28,9 @@ import grass.script as grass
|
|
|
|
|
|
def unicodeValue(value):
|
|
|
"""!Encode value"""
|
|
|
+ if type(value) == types.UnicodeType:
|
|
|
+ return value
|
|
|
+
|
|
|
enc = UserSettings.Get(group = 'atm', key = 'encoding', subkey = 'value')
|
|
|
if enc:
|
|
|
value = unicode(value, enc)
|