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 <[EMAIL PROTECTED]> 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
> [EMAIL PROTECTED]
> 
> __________________________________________________
> Do You Yahoo!?
> Thousands of Stores.  Millions of Products.  All in one Place.
> http://shopping.yahoo.com/


=====
Wyn Easton
[EMAIL PROTECTED]

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

Reply via email to