cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Sparkes <>
Subject Re: Cforms and Character Encoding
Date Wed, 23 Jan 2008 08:29:56 GMT
Thanks Joerg,

The problem turned out to be in web.xml

I amended




and now everything is in UTF-8 and works properly

The problem was that the form was sending UTF-8 but it was being read as 

> On 08.12.2007 13:37, Peter Sparkes wrote:
>> I am using Cforms in Cocoon 2.1.10 to amend an XML file. The 
>> character encoding is UTF-8
>> The Euro sign € gets converted to â&#130;¬ and UK pound sign £ to £
>>> from the field widget. I am using the saveDocument function from the 
>> samples and have set
>> transformer.setOutputProperty(Packages.javax.xml.transform.OutputKeys.ENCODING, 
>> "UTF-8");
>> Please, how do I correct this problem?
> I can't tell you how to correct it since I don't know where it goes 
> wrong. But what happens is that a 2-byte-character (as in UTF-8) is 
> read byte by byte (as in ISO-8859-1). Maybe it is only a problem with 
> watching the file without an encoding-aware editor which reads it in 
> ISO-8859-1?
> Joerg
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message