diff options
Diffstat (limited to 'gsxws')
-rw-r--r-- | gsxws/objectify.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gsxws/objectify.py b/gsxws/objectify.py index d001a15..979ec33 100644 --- a/gsxws/objectify.py +++ b/gsxws/objectify.py @@ -35,8 +35,11 @@ TZMAP = { class GsxElement(StringElement): + def __unicode__(self): + return self.pyval + def __str__(self): - return str(self.pyval) + return unicode(self).encode('utf-8') class GsxDateElement(GsxElement): |