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: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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. > -- > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > 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]
