Hi, > I use the LDAP-Transformer. It's works fine. But I have a Problem with > special german characters. I must use the character set "ISO-8859-1". > The Problem occurs only on LDAP-Transformer-Datas. On the normal conversion > from xml to html using xslt occurs no Problems with special german > characters. > What can I do?
We had a similar problem with our Oracle database when we used html forms. Everything worked fine, when we typed data in the form and sent it to the xsp page for processing. But when we read data from the database and used it to initialize the form data, it got "encrypted". Our solution - which, in my opinion, is not really good - is to tell the html serializer to generate output in the "ISO-8859-1" character set instead of the normal "UTF-8" character set. Then all the data, which is serialized to html stays in the "ISO-8859-1" character set, which has been read from the database. You can achieve this by including the following definition for the html serializer in the <map:serializers> section of your sitemap: <map:serializer name="html" mime-type="text/html" src="org.apache.cocoon.serialization.HTMLSerializer"> <doctype-public>-//W3C//DTD HTML 4.01 Transitional//EN</doctype-public> <encoding>ISO-8859-1</encoding> <omit-xml-declaration>yes</omit-xml-declaration> </map:serializer> We did not put this into the main sitemap. We use it only in some sub-sitemaps, where we need it. Greetings | Viele Grüße Christoph --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>