tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wyn Easton <wyn_eas...@yahoo.com>
Subject Re: Skills Challenge - off topic
Date Wed, 08 Nov 2000 17:23:30 GMT
Got it!
I left in the page directive
<%@ page contentType="text/html;charset=utf-8"%>
and I surrounded response.setContentType("text/html;charset=8859_1");
with the test for a debug flag.
Works great.

--- Wyn Easton <wyn_easton@yahoo.com> wrote:
> Hi All,
> 
> I just changed several JSPs to support language translations.
> I added <%@ page contentType="text/html;charset=utf-8"%>
> to the beginning of all of my JSPs. This is great for NLS, but
> the Netscape JavaScript Debugger only understands US ASCII and
> will not work with utf-8 (bummer).
> Now the challenge...
> How can I somehow set a debug flag in my JSPs to use US ASCII 
> if the flag is set and UTF-8 if not?
> I've tried surrounding the "page" JSP tag with an "if", but
> the page directive is processed first and moved to the beginning of
> the generated java file. I've tried replacing the String
> "text/html;charset=utf-8" with a String variable, no luck.
> Hmmm...
> 
> 
> 
> 
> 
> =====
> Wyn Easton
> wyn_easton@yahoo.com
> 
> __________________________________________________
> Do You Yahoo!?
> Thousands of Stores.  Millions of Products.  All in one Place.
> http://shopping.yahoo.com/


=====
Wyn Easton
wyn_easton@yahoo.com

__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one Place.
http://shopping.yahoo.com/

Mime
View raw message