cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Art Spassky" <art.spa...@dgma.donetsk.ua>
Subject Re: Problem with StreamGenerator
Date Tue, 12 Oct 2004 10:46:05 GMT
With UTF-8 I have the same result.

I think the problem may be in how servlet container handle uploaded files.
I change encoding in web.xml but have the same result.

may be Jetty is not perfect servlet container or it is a bug.

Thank you once more for reply.

----- Original Message -----
From: "Volkm@r" <plsdontreply@arcor.de>
To: <users@cocoon.apache.org>
Sent: Tuesday, October 12, 2004 1:54 PM
Subject: Re: Problem with StreamGenerator


> Art Spassky wrote:
> > Hi all.
> >
> > Can someoneb help me with my problem.
> > I am using cocoon-2.1.5.1.
> > I would like to use StreamGenerator for automatical generating documents
> > from uploaded files.
> > everything works well but I found problem with encoding.
> > When I upload xml file with encoding UTF-8 and transform it. Output file
> > contains irregular data.
> >
> > Thank you for help in advance.
> >
> > UploadForm.xml
> >
> > <?xml version="1.0" encoding="Windows-1251"?>
> > <html>
> > <meta name="Content-Type" Value="text/html;charset=UTF-8"/>
>
> So you have
>
> 1. An XML declaration saying "Windows-1251"
> 2. A meta hack saying "UTF-8"
>
> Both should be the same and both *must* be in accordance with the
> charset info of the HTTP response header. As you are obviously using
> Cyrillic, you'd better chose the XML standard encoding which is UTF-8.
>
> Check the mime-type attribute of your HTML serializer to be
>
>     mime-type="text/html; charset=utf-8"
>
> so that it will put the correct header.
> --
> Volkm@r
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message