diff --git a/wxPython/wxPython/tools/XRCed/xxx.py b/wxPython/wxPython/tools/XRCed/xxx.py index ce786c931c..aed4a8ae7b 100644 --- a/wxPython/wxPython/tools/XRCed/xxx.py +++ b/wxPython/wxPython/tools/XRCed/xxx.py @@ -36,10 +36,16 @@ class xxxParam(xxxNode): # Use convertion from unicode to current encoding self.textNode = text # Value returns string - def value(self): - return self.textNode.data.encode(currentEncoding) - def update(self, value): - self.textNode.data = unicode(value, currentEncoding) + if wxUSE_UNICODE: # no conversion is needed + def value(self): + return self.textNode.data + def update(self, value): + self.textNode.data = value + else: + def value(self): + return self.textNode.data.encode(currentEncoding) + def update(self, value): + self.textNode.data = unicode(value, currentEncoding) # Integer parameter class xxxParamInt(xxxParam):