Works with python2.4.

This commit is contained in:
obenassy 2007-12-18 20:04:56 +00:00
parent 307b9531be
commit 0c83b6025e
1 changed files with 3 additions and 0 deletions

View File

@ -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)