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);
//Then I has set content type:
res.setContentType("text/html; charset=Windows-1251");
//After all I'm calling getWriter:
PrintWriter out = res.getWriter();
It doesn't work - I can see only question marks on the servlet output
page. The same problems with the russian characters sent to servlets
from HTML forms - all russian characters replaced with question signs.
May somebody know how to solve these problems ?
Gleb.
___________________________________________________________________________
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