You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Max Larsson <ma...@gmservice.de> on 2001/11/27 12:27:39 UTC
Encoding
Hi,
i am testing the employee example, which is
contained with C2 distribution and accessible
under http://localhost:8080/cocoon/forms/employee.
When trying to add an employee with special
chararters like aumlaut they aren't stored correctly
in the database. Does anyone know how to avoid
this ??
Max
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
&ndash problem with NS4++
Posted by Ling Kok Choon <ko...@brel.com>.
Hi,
i found that NS4++ can't support – and ‘ but the website generated by cocoon2b1
will transform the – to – and ‘ to ‘ so is any configuration can remain
the ‘ and ‘ ?
Here are the snip code for xml and sitemap:
xml file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<Document><page-title>Table</page-title><page-name>Table</page-name><big-title>
<title>About symbols</title>
<para/><sub-title>
<title>About symbols</title>
<para/>
<para>This is only a test for :</para>
<para>– </para>
<para>‘</para>
<para>@</para>
<para>#</para>
<para>$</para>
<para>%</para>
<para>^</para>
<para>&</para>
<para>*</para>
<para>?</para>
<para>~</para>
<para>`</para>
<para>+</para>
<para>=</para></sub-title>
</big-title></Document>
sitemap:
....
....
<map:serializers default="html">
<map:serializer name="links"
src="org.apache.cocoon.serialization.LinkSerializer"/>
<map:serializer name="xml" mime-type="text/xml"
src="org.apache.cocoon.serialization.XMLSerializer"/>
<map:serializer name="html" mime-type="text/html"
src="org.apache.cocoon.serialization.HTMLSerializer">
<indent>0</indent>
<encoding>ISO-8859-1</encoding>
</map:serializer>
<map:serializer name="fo2pdf" mime-type="application/pdf"
src="org.apache.cocoon.serialization.FOPSerializer"/>
<map:serializer name="vrml" mime-type="model/vrml"
src="org.apache.cocoon.serialization.TextSerializer"/>
<map:serializer name="wap" mime-type="text/vnd.wap.wml"
src="org.apache.cocoon.serialization.XMLSerializer">
<doctype-public>-//WAPFORUM//DTD WML 1.1//EN</doctype-public>
<doctype-system>http://www.wapforum.org/DTD/wml_1.1.xml</doctype-system>
</map:serializer>
....
....
--------------------------------------------------------
Name: Ling Kok Choon
E-mail: Ling Kok Choon <ko...@brel.com>
Date: 11/28/01
Time: 10:26:49
This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions
--------------------------------------------------------
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Cocoon 1.8.2 + MySQL + JDBC + Win2000 + Tomcat
Posted by Schroeter Christian <Ch...@nbg.sbs.de>.
Hi,
as i read here in the mailling-list and in the internet, there are more
people who have problems to create an jdbc-connection to MySQL. At the moment
i also try to establish such a connection.
But it is not working, and i do not know why. Can anybody help?
I am using MySQL (Version 3.23.38), Cocoon 1.8.2, Tomcat 3.2.3, Win2000
I used this jdbc-driver: mm.mysql-2.0.6.1.jar
I copied them into TOMCAT_HOME/lib
My cocoon.property-File has this:
# These are your database settings, look in the
# org.apache.turbine.util.db.pool.* package for more information.
processor.xsp.pool.database.db.driver=org.gjt.mm.mysql.Driver
processor.xsp.pool.database.db.url=jdbc:mysql:\\localhost\db
processor.xsp.pool.database.db.username=lothar
processor.xsp.pool.database.db.password=xxx
processor.xsp.pool.database.db.maxConnections=3
processor.xsp.pool.database.db.expiryTime=3600000
I try this both xml-Files to access the DB:
*** Without pool-connection:
Source of the page:
...
<esql:connection>
<esql:driver>org.gjt.mm.mysql.Driver</esql:driver>
<esql:dburl>jdbc:mysql://localhost/db</esql:dburl>
<esql:username>lothar</esql:username>
<esql:password>xxx</esql:password>
....
I get this errormessage:
java.lang.RuntimeException: Error loading driver: org.gjt.mm.mysql.Driver
at
_D_._Jakarta._Tomcat._jakarta_tomcat_3_2_3._webapps._cocoon._uebung3._uebung3d_db.populateDocument(_uebung3d_db.java:183)
at org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:97)
at org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:527)
at org.apache.cocoon.Engine.handle(Engine.java:384)
at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
*** With pool-connection
...
<esql:connection>
<esql:pool>db</esql:pool>
<esql:execute-query>
...
java.lang.RuntimeException: Error opening pooled connection: db:
org.gjt.mm.mysql.Driver
at _D_._Jakarta._Tomcat._jakarta_tomcat_3_2_3._webapps._cocoon._uebung3._ue
bung3c_db.populateDocument(_uebung3c_db.java:184)
at org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:97)
at org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:5
27)
at org.apache.cocoon.Engine.handle(Engine.java:384)
at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
cu,
Christian
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Encoding
Posted by Nuno José Pires dos Santos <ns...@electroplus.pt>.
What I think is that pipeline doesn't care for the request encoding. I
think the big problem is that utf-8 is the default encoding used by the
serializer, so what you need is to change the encoding to utf-16. That
should solve the problem...
... I think.
Nuno Santos
-----Mensagem original-----
De: Max Larsson [mailto:max.larsson@gmservice.de]
Enviada: quarta-feira, 28 de Novembro de 2001 7:49
Para: cocoon-users@xml.apache.org
Assunto: RE: Encoding
Hi,
thnaks it works at least more than ever, but
still some issues are open. First why does it
work when changing the encoding of the serializer.
I mean the serializer influence the response
and the request parameter comes from the request (the
beginning of the pipeline)??
Second if i set the serializer encoding to UTF-8
does than even japanese characters get stored
correctly ??
Max
> -----Original Message-----
> From: Nuno José Pires dos Santos [mailto:nsantos@electroplus.pt]
> Sent: Dienstag, 27. November 2001 16:36
> To: cocoon-users@xml.apache.org
> Subject: RE: Encoding
>
>
> Try this
>
> <map:serializer name="html" mime-type="text/html"
> src="org.apache.cocoon.serialization.HTMLSerializer">
> <encoding>ISO-8859-1</encoding>
> </map:serializer>
>
> -----Mensagem original-----
> De: Max Larsson [mailto:max.larsson@gmservice.de]
> Enviada: terça-feira, 27 de Novembro de 2001 11:28
> Para: 'Cocoon Users'
> Assunto: Encoding
>
> Hi,
>
> i am testing the employee example, which is
> contained with C2 distribution and accessible
> under http://localhost:8080/cocoon/forms/employee.
>
> When trying to add an employee with special
> chararters like aumlaut they aren't stored correctly
> in the database. Does anyone know how to avoid
> this ??
>
> Max
>
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Encoding
Posted by Max Larsson <ma...@gmservice.de>.
Hi,
thnaks it works at least more than ever, but
still some issues are open. First why does it
work when changing the encoding of the serializer.
I mean the serializer influence the response
and the request parameter comes from the request (the
beginning of the pipeline)??
Second if i set the serializer encoding to UTF-8
does than even japanese characters get stored
correctly ??
Max
> -----Original Message-----
> From: Nuno José Pires dos Santos [mailto:nsantos@electroplus.pt]
> Sent: Dienstag, 27. November 2001 16:36
> To: cocoon-users@xml.apache.org
> Subject: RE: Encoding
>
>
> Try this
>
> <map:serializer name="html" mime-type="text/html"
> src="org.apache.cocoon.serialization.HTMLSerializer">
> <encoding>ISO-8859-1</encoding>
> </map:serializer>
>
> -----Mensagem original-----
> De: Max Larsson [mailto:max.larsson@gmservice.de]
> Enviada: terça-feira, 27 de Novembro de 2001 11:28
> Para: 'Cocoon Users'
> Assunto: Encoding
>
> Hi,
>
> i am testing the employee example, which is
> contained with C2 distribution and accessible
> under http://localhost:8080/cocoon/forms/employee.
>
> When trying to add an employee with special
> chararters like aumlaut they aren't stored correctly
> in the database. Does anyone know how to avoid
> this ??
>
> Max
>
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Encoding
Posted by Nuno José Pires dos Santos <ns...@electroplus.pt>.
Try this
<map:serializer name="html" mime-type="text/html"
src="org.apache.cocoon.serialization.HTMLSerializer">
<encoding>ISO-8859-1</encoding>
</map:serializer>
-----Mensagem original-----
De: Max Larsson [mailto:max.larsson@gmservice.de]
Enviada: terça-feira, 27 de Novembro de 2001 11:28
Para: 'Cocoon Users'
Assunto: Encoding
Hi,
i am testing the employee example, which is
contained with C2 distribution and accessible
under http://localhost:8080/cocoon/forms/employee.
When trying to add an employee with special
chararters like aumlaut they aren't stored correctly
in the database. Does anyone know how to avoid
this ??
Max
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>