You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Vadim Gritsenko <va...@verizon.net> on 2001/12/18 23:30:20 UTC

JSPEngine & encodings

Hi all,

I'm working on a bug #4239
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4239)

The reason of this bug is that characters of the page is being
re-encoded from its original encoding into system's character set by
PrintWriter instantiated in MyServletOutputStream, and then InpoutSource
tries to read it as UTF-8 byte stream - generating an Exception or
corrupted result.

The possible solution is to always re-encode JSP's character stream into
UTF-8, and set UTF-8 encoding for InputSource used to parse JSP.

Please let me know is this solution is acceptable or not; may there are
some hidden caveats related with this.


PS Dims, CCing to you - as you are in authors :)

Vadim


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


Re: JSPEngine & encodings

Posted by Davanum Srinivas <di...@yahoo.com>.
Vadim,
Good idea...Please go ahead and let me know if you run into problems.

Thanks,
dims

--- Vadim Gritsenko <va...@verizon.net> wrote:
> Hi all,
> 
> I'm working on a bug #4239
> (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4239)
> 
> The reason of this bug is that characters of the page is being
> re-encoded from its original encoding into system's character set by
> PrintWriter instantiated in MyServletOutputStream, and then InpoutSource
> tries to read it as UTF-8 byte stream - generating an Exception or
> corrupted result.
> 
> The possible solution is to always re-encode JSP's character stream into
> UTF-8, and set UTF-8 encoding for InputSource used to parse JSP.
> 
> Please let me know is this solution is acceptable or not; may there are
> some hidden caveats related with this.
> 
> 
> PS Dims, CCing to you - as you are in authors :)
> 
> Vadim
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org


=====
Davanum Srinivas - http://jguru.com/dims/

__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

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