cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piroumian, Konstantin" <KPiroum...@flagship.ru>
Subject Re: JSPGenerator encoding problem
Date Fri, 08 Feb 2002 13:25:53 GMT
> > From: yuryx [mailto:yuryx@mobicomk.donpac.ru]
> >
> > Thanx for ideas ,Vadim.
> > But I can't undestand how declare JSP encoding.
>
> Try to read JSP specification.

The correct declaration is:

<%@ page language="java" import="java.text.SimpleDateFormat,java.util.*"
pageEncoding="KOI8-R"%><?xml version='1.0' encoding="KOI8-R"?>

Note, that your XML to be parsed you should put <?xml ...?> declaration on
the same line as <%@ page ...>, otherwise an empty line is added at the
beginning of the page and this causes parsing error.

Regards,
    Konstantin

P.S. I've already sent the corrected file off-list.

>
> Vadim
>
>
> > instead of <%out.println("<?xml version='1.0' encoding='koi8-r'?>");%>
> I try
> > <?xml version='1.0' encoding='KOI8-R'?> in sample.jsp
> > but again it doesn't work :(
> > Yury
> >
>
>
> ---------------------------------------------------------------------
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message