JRun used to read files and assume the system charset encoding unless
otherwise specified. But that "feature" was removed because the JSP spec.
says the default encoding for JSPs is ISO-8859-1. If you want to use
another charset, you're supposed to specify it in the contentType attribute
of the page directive.
The setting in the admin for JSP encoding only works if you have JSP 0.92
enabled, otherwise it does nothing.
For anyone reading this about JRun, I highly recommend JRun 3.0, beta 5 for
development. It is _waaaaay_ faster than JRun 2.3, and the admin interface
is beautiful compared to what it was in the 2.x series. Of course there are
tons of new features like full support for the latest spec's in EJB, JSP and
Servlet fully custom logging, a (growing) custom taglib, etc.
Scott Stirling
----- Original Message -----
From: "McArthur Rob" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 20, 2000 3:18 PM
Subject: Jrun and jsp page encodings
> Hi All,
>
> Just having a rather annoying problem with character encoding and JRun:
>
> I wish to write .jsp pages in the ISO-8859-2 character set (which is the
> default encoding for the OS), but output them as UTF-8. At the top of
every
> jsp page, I put: <%@ page contentType="text/html; charset=UTF-8"%>. This
> will work as long as the page contains only US-ASCII. As soon as I put
any
> ISO-8859-2 codes in the page, I get a 'Document contains no data' error
> message. While if I set the charset=ISO-8859-2, everything works fine.
It
> seems that JRun makes an incorrect assumption that the charset I specify
for
> output is also the charset for the file which resides on my filesystem.
> Java will normally perform this conversion from IS0-8859-2 to internal
> Unicode if you use the java.io.Reader classes, but I guess JRun is not
using
> the technique. I have also tried to set the 'default encoding' in 'Page
> compilation' in the Admin, but it doesn't seem to have any effect.
>
> Does anyone know if there is a way to get JRun to read the files as if
they
> are encoded in the filesystem's default encoding?
>
> Rob McArthur
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets