cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Lutz <>
Subject Re: Forms encoding problem
Date Tue, 07 Feb 2006 13:58:54 GMT
first thought:
i think we had this error message when using escaped utf-8 chars...

our source files are encoded in utf-8, and some guy inserted a escaped 
"&#160" in utf  8 with is &nbsp; in utf-8 (<!ENTITY *nbsp* "&#160;">)

this crashed the forms. didn't figure out why, not enough time, just 
threw out the escaped chars. but as you are using iso-8859-1, just 
search for a file that's not in the right encoding, or a string 160 in 
your form files and delete this... (ultraedit or grep, depending on your 
system :-) ) probably one of your coders or editors uses utf-8, so 
you'll accidently inserted this utf-8 fragment  (and doesn't know it :-) )

second thought:
are you sure that the configuration is the same ? maybe the app server 
has other defaults, that you don't set in your application config... no 
server admin guru, but we had problems in this area.

Maybe it helps to set some init-params in web.xml, here comes a snippet 
from my app (replaced my setting utf-8 with your setting iso-8859-1)

      Set encoding used by the container. If not set the ISO-8859-1 encoding
      will be assumed.


      Set form encoding. This will be the character set used to decode 
      parameters. If not set the ISO-8859-1 encoding will be assumed.



Derek Hohls wrote:
> I am struggling to get forms displayed on a server -
> UNIX machine running Cocoon 2.1.5 and JDK 1.4
> (the same app works **fine** on the development
> machine, running the same configuration, as well as
> on a Linux server...)
> The error message I get when trying to show the form
> (filled with data from the database) is:
> org.apache.cocoon.ProcessingException: 
> Failed to execute pipeline.: 
> java.lang.RuntimeException: 
> org.xml.sax.SAXException: 
> Attempt to output character of integral value 160 that is not represented in specified
output encoding of .
> [and no, there is no word missing just before the above "full stop"]
> Based on mailing list and wiki suggestions I have tried:
>  <form action=... method="post" accept-charset="ISO-8859-1">
> also:
>  <?xml version="1.0" encoding="ISO-8859-1"?>
> in the form, *and* the stylesheet processing the form for display
> also, in cocoon.xconf
>   <jdbc name="pool_name">
>     <pool-controller min="5" max="10"/>
>     <dburl>jdbc:mysql://YourHostName:3360/YourDataBaseName?useUnicode=true&amp;characterEncoding=ISO-8859-1</dburl>
>     <user>database_user</user>
>     <password>database_password</password>
>   </jdbc>
> NB - I am not trying to use any complex characters - inputs
> should be "plain" English!
> Is there a "Definitive Guide to Using Encoding" anywhere??
> Thanks
> Derek

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message