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 @@ ...@@ -30,7 +30,7 @@
############################################################################## ##############################################################################
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from lxml import etree from lxml import etree
from zLOG import LOG,INFO
class ScribusParser: class ScribusParser:
""" """
Scribus parser API provide methods wich allow to parse a scribus file. Scribus parser API provide methods wich allow to parse a scribus file.
...@@ -478,6 +478,10 @@ class ScribusParser: ...@@ -478,6 +478,10 @@ class ScribusParser:
for attributes in field[1]["ANTOOLTIP"].split("#"): for attributes in field[1]["ANTOOLTIP"].split("#"):
if attributes != "": if attributes != "":
key,value = attributes.split(":") 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": if key == "nb":
value = int(value) value = int(value)
erp5_attribute_dict[key]=value erp5_attribute_dict[key]=value
......
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