On 30.10.2008 14:57 Uhr, Mikko Ohtamaa wrote:
Why UTF-8 characters in TAL page templates are double encoded in UTF-8? Plone
3.1.x.
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
metal:use-macro="context/main_template/macros/master">
<body>
<metal:slot metal:fill-slot="main">
<p>
Sisältö on lähetetty eteenpäin toimittajakunnalle
oikoluettavaksi.
</p>
</metal:slot>
</body>
</html>
will result to web page text:
SisÀltö on lÀhetetty eteenpÀin toimittajakunnalle oikoluettavaksi.
Content-type: is text/html; charset=utf-8
Someone on #zope suggested that this might a Plone specific problem.
*Trible* check that the encoding of your template is really utf-8. If it
isn't utf-8, you have to specify a different encoding within the
.metadata file of the related template (I think
[default]\ncharset=iso-8859-15 for example).
-aj
--
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376
Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535
Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK
------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[EMAIL PROTECTED]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers