----- Original Message -----
From: Jason Hunter <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 30, 2000 3:37 PM
Subject: Re: Problem with national characters in form input (Attention to
Sun servlet team)


> What's your response to Costin's reasoning for closing the bug?

I e-mail him that this problem really exists.

>
> And, more importantly, how would you have the server know how to
> properly decode the bytes of the query string in the appropriate
> charset?  Browsers are notorious for *not* telling the server the
> charset they're using.  POST with a Content-Type header was supposed
> to solve the problem, but last I checked browsers weren't being honest
> there about charsets either.

I understand that in many cases it can not be done by web server, but if it
will be a way to developer to specify which encoding to use for
converting in this web application it may help (in intranet for example).

Another approach is to make it possible to user to choose
encoding. For example in Russia there is patch to apache
called "Russian Apache" it make possible to web server
to listen on several ports and on each port user receive
html in the certain encoding (in web server html document
exist in one encoding and when web browser ask page it
automatically convert to the necessary encoding)

So developer can make a links in html page to this
page but in other encoding (it is make possible
to specify even other language) and user have a choice.
After this choice web server can know what encoding to use
to this client even if web browser does not specify
anything in Content-Type header.

In servlet engine this may work the same way as sessions
(by URL rewriting or by cookies)

I think this can solve all problems.



Vyacheslav Pedak.

___________________________________________________________________________
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

Reply via email to