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