unicode conversion
svn: r5190
This commit is contained in:
parent
83b7e669dc
commit
b779bc44a2
@ -27,6 +27,7 @@
|
|||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
import cPickle as pickle
|
import cPickle as pickle
|
||||||
import os
|
import os
|
||||||
|
import locale
|
||||||
from xml.sax.saxutils import escape
|
from xml.sax.saxutils import escape
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
|
|
||||||
@ -405,7 +406,8 @@ class ScratchPadText(ScratchPadWrapper):
|
|||||||
self._type = _("Text")
|
self._type = _("Text")
|
||||||
|
|
||||||
self._title = ""
|
self._title = ""
|
||||||
self._obj = unicode(self._obj)
|
if type(self._obj) == str:
|
||||||
|
self._obj = unicode(self._obj,locale.getpreferredencoding())
|
||||||
self._value = self._obj
|
self._value = self._obj
|
||||||
|
|
||||||
def tooltip(self):
|
def tooltip(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user