International Char. Sets

Hello,

Does anyone know how to force the browser

to use a particular charset with JSP?

I am trying to write a page in Japanese,

but the browser keeps switching to

the default ISO. I have already

tried setting the contentType in the

page tag, but I can not find a listing

anywhere of legal char sets.

The funny thing is, up until a few days ago,

my browser automatically used the correct

char set to display the Japanese characters.

Any help would be great. I have been

scavenging the Internet for several days

and have come up with nothing.

Thanks!

Phil

[665 byte] By [PhilMcCartney] at [2007-9-26 2:25:27]
# 1
Phil,try including the following line in the <HEAD></HEAD>section of your HTML:<META HTTP-EQUIV="ContentType" CONTENT="text/html; charset=Shift_JIS">(or EUC-JP which ever your characterset is)
sunilkg at 2007-6-29 9:36:34 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thanks for the reply.

Very strange results though.

Before, I was either adding the content

type in the page tag, but that did not work.

Then I was trying adding the meta tag, as

you just suggested, but I did not know the

correct charset type.

After adding your meta tag, nothing happened.

But then I also added the charset in the page

tag, and now it works!

As a background, I am running Tomcat on

WinME. A possible problem is to get

it running, I have to start java on the main

class, because the batch files will not work

due to static environment vars and clearing

my classpath. Also strange. So I am wondering

if part of the original problem is my server.

Another background point is a few weeks ago

it worked. Only in the last couple of days

did it stop working.

Thanks for the input!

PhilMcCartney at 2007-6-29 9:36:34 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...