You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Cocoon User <co...@osmosis.gr> on 2002/02/09 13:26:16 UTC

Re: Cocoon2 and non-English characters in jsp

try use disable-output-escape="yes" in your XSL
its an atribute that apply to text elemnts



this work in my case exept the content of meta tags
in metatags content i get the same kind of characters like u

kounis stavros
http://www.osmosis.gr

On Thu, 24 Jan 2002, Gasper wrote:

> I have the one with the 11-Jan-2002 date from the
> http://xml.apache.org/cocoon/dist/.
>
> I got the new JSPEngine.java and JSPEngineImpl.java and JspGenerator.java
> from Code Repository.
>
> Now my characters get encoded like this: &#154;&eth;&egrave;&aelig;&#158;
> this is the source from my jsp page as seen in the browser.
>
> The actual encoding to a diffrent encoding does not happen I guess.
>
> I tried a xsp page with my utf-8 chars in, but with the same result
> (&#154;&eth;&egrave;&aelig;&#158;).
>
> I guess now I have to solve how cocoon or maybe tomcat encodes characters.
>
> If somebody found it out for XSP let my know, please!
>
> Any ideas?
>
> Thanks
>
> Gasper
>
> ----- Original Message -----
> From: "Vadim Gritsenko" <va...@verizon.net>
> To: <co...@xml.apache.org>
> Sent: Thursday, January 24, 2002 1:33 AM
> Subject: RE: Cocoon2 and non-English characters in jsp
>
>
> > What Cocoon version do you have? Only Cocoon post-2.0 release from CVS
> > have correct handling of JSP encoding.
> >
> > (See
> > http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/changes.xml?rev=1.75&conte
> > nt-type=text/vnd.viewcvs-markup, first mention of JSPEngine)
> >
> > Vadim
> >
> > > -----Original Message-----
> > > From: Gasper [mailto:gasper-lists@gorenc.com]
> > > Sent: Wednesday, January 23, 2002 7:16 PM
> > > To: cocoon-users@xml.apache.org
> > > Subject: Re: Cocoon2 and non-English characters in jsp
> > >
> > > The encoding for a jsp is done like this:
> > > <%@page contentType="text/html; charset=iso-8859-2"%>
> > > But this does not help.
> > >
> > > <?xml version="1.0" encoding="iso-8859-2"?>
> > > On top of my jsp doesn't help either.
> > >
> > > I've also tried the following in my sitemap.xmap but with no success.
> > >    <map:serializer name="html"   mime-type="text/html"
> > > src="org.apache.cocoon.serialization.HTMLSerializer">
> > >      <encoding>iso-8859-2</encoding>
> > >    </map:serializer>
> > >
> > > Any other ideas?
> > >
> > > Thanks very much.
> > >
> > > Gasper
> > >
> > >
> > > ----- Original Message -----
> > > From: "Vadim Gritsenko" <va...@verizon.net>
> > > To: <co...@xml.apache.org>
> > > Sent: Wednesday, January 23, 2002 9:36 PM
> > > Subject: RE: Cocoon2 and non-English characters in jsp
> > >
> > >
> > > > > From: Gasper [mailto:gasper-lists@gorenc.com]
> > > > >
> > > > > Hello
> > > > >
> > > > > If I use non-English characters in my jsp's, they appear in the
> > > > browser as
> > > > > question marks.
> > > > >
> > > > > How can I specify the encoding for my page served by cocoon2?
> > > >
> > > > First you have to define encoding in your JSP source file. Look into
> > JSP
> > > > spec for a way to do this (I don't remember)
> > > >
> > > > Vadim
> > > >
> > > >
> > > >
> > > >
> > ---------------------------------------------------------------------
> > > > 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>
>


---------------------------------------------------------------------
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>