After a lot of tries, it seems that Cocoon authentication is not involved, nor
DOM model : it is the fact of transforming such characters in a xsl:comment
section that produce this kind of error.

If I remove the xsl:comment tags, my string appears without any error. Is
anybody knows the problem ?

> -----Message d'origine-----
> De : JLM [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 17 mars 2004 16:50
> À : [EMAIL PROTECTED]
> Objet : Encoding problem
> 
> Hello!
> 
> I have written a custom authenticator object that sends back to the user an
> error message if login fails. So I build a DOM structure and I pass it to the
> AuthenticationResult object, returning it from authenticate method. Because I
> use DOM, all error messages are in UTF8.
> I get session context from an XSP page (only interesting code is given here)
> :
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <xsp:page …>
>       <login>
>               …
>               <throw><session:getxml context="temporary"
> path="/data/throw"/></throw>
>       </login>
> </xsp:page>
> 
> … and I use session transformer on the result. After that, I transform
> resulting XML flow to HTML code using this kind of stylesheet:
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> 
> <xsl:stylesheet version="1.0"
>       xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>       xmlns:i18n="http://apache.org/cocoon/i18n/2.1";>
> …
> <xsl:template match="throw">
>       …
>       <i18n:text>login_internal-error</i18n:text> :<br/><xsl:value-of
> select="user-msg"/>
>       …
> </xsl:template>
> …
> 
> My application works fine until I put some extended characters (like é or ê)
> in
> my message in the DOM structure. I get back from Cocoon the following error:
> 
>        Attempt to output character of integral value 234 that is not
> represented in specified output encoding of .
> 
> It seems that session transformer put in the XML flow some UTF-8 instead of
> converting them in ISO-8859-1. Is it a way to solve this problem?
> 
> Thanks!
> Jean-Luc
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to