Commit f030ac3a authored by Mayoro Diagne's avatar Mayoro Diagne

use utf-8 encoding for unicode expressions

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36692 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ea05549c
......@@ -30,7 +30,7 @@
##############################################################################
from AccessControl import ClassSecurityInfo
from lxml import etree
from zLOG import LOG,INFO
class ScribusParser:
"""
Scribus parser API provide methods wich allow to parse a scribus file.
......@@ -478,7 +478,11 @@ class ScribusParser:
for attributes in field[1]["ANTOOLTIP"].split("#"):
if attributes != "":
key,value = attributes.split(":")
if isinstance(key, unicode):
key = key.encode('utf-8')
if isinstance(value, unicode):
value = value.encode('utf-8')
if key == "nb":
value = int(value)
erp5_attribute_dict[key]=value
value = int(value)
erp5_attribute_dict[key]=value
return erp5_attribute_dict
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment