Wrong decode transformation with diazo
Closed this issue · 1 comments
csanahuja commented
When rules.xml on a diazo theme contains a replace
with href poiting a browser view, like:
<replace css:theme="#theme-div" css:content="#css-div" href="@@browser-view"/>
The transformation it's not decoded properly: á
shows like: Ã
Aparently modifying line https://github.com/plone/plone.transformchain/blob/master/plone/transformchain/zpublisher.py#L101 by:
lambda it: it.decode('utf-8').encode('latin-1').decode('utf-8')
fixed the issue for me.
csanahuja commented
Okay... this does not solve anything (Actually makes the code break).
At this point the bytes are already mixed, parts encoded with utf-8 and parts with latin-1.
Will try to investigate more
EDIT: Ok, I think its lxml fault, will open an issue on plone.app.theming