Works with python2.4.
This commit is contained in:
parent
307b9531be
commit
0c83b6025e
|
@ -3084,6 +3084,9 @@ class String(BaseKind):
|
|||
from xml.dom.minidom import parseString
|
||||
import xml
|
||||
try:
|
||||
value = unicode(value,'iso-8859-15')
|
||||
import codecs
|
||||
value = codecs.utf_8_encode(value)[0]
|
||||
parseString(value)
|
||||
except xml.parsers.expat.ExpatError:
|
||||
raise faults.BadSlotValue(slot, value)
|
||||
|
|
Reference in New Issue