Hello !

I has tried, but did not succeed - I'm getting wrong charset iso-8859-1
in the Netscape 4.72 and correct Cp1251 in the Microsoft Internet
Explorer 4.0 and 5.0.

Gleb.

Dmitri Namiot wrote:
>
> try to change capitalization:
>
> res.setContentType("text/html";charset=windows-1251");
>                                        ^^ small w
> you can use also Cp1251.
>
> > Hello, everybody !
> >
> > I has changed text to russian in the sample servlet HelloWorldServlet,
> > which one is coming with iPlanet webserver 4.1 ,recompiled and installed
> > it. Instead of the russian text I'm getting only question signs in the
> > Netscape Communicator. Problem is, that servlet's output depends on the
> > HTTP ACCEPT-CHARSET sent from communicator in the HTTP GET request, but
> > it is wrong for Russia(en,*,UTF-8) and can't be changed from GUI, only
> > in the prefs.js file, what is confusing for users on Internet. If one
> > will edit file prefs.js or connect from the Microsoft's Internet
> > Explorer he will see a russian text.
> > In the beginning of doGet I has set locale:
> > Locale MyLocale=new Locale("ru","RU");
> > res.setLocale(MyLocale);
> > file://Then I has set content type:
> > res.setContentType("text/html; charset=Windows-1251");
>
> ServletShop: java server side programming
> http://coldjava.hypermart.net
>
> ____________________________________________________________________
> Get your own FREE, personal Netscape WebMail account today at 
>http://webmail.netscape.com.
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
begin:vcard
n:Koukhta;Gleb
tel;cell:+7 901 7810908
tel;fax:+7 095 2467994
tel;work:+7 095 2467996
x-mozilla-html:TRUE
org:<img src="http://home.netscape.ru/~gleb/SunNetscape.gif"> <br> <a href="http://home.netscape.ru/main.html">Netscape Authorized Service Center</a>
version:2.1
email;internet:[EMAIL PROTECTED]
title:System engineer
adr;quoted-printable:;;Office 307=0D=0ABuilding 3=0D=0APrechistenka street 40=0D=0A;Moscow;;119034;Russian Federation
fn:Gleb Koukhta
end:vcard

S/MIME Cryptographic Signature

Reply via email to