Re: Form response charset

Jesse Hall wrote:
> I'm working on internationalizing a web-based application. One of the 
> requirements is that it must accept international input via forms. My problem is 
> that I haven't found a way of determining which character set the information 
> coming back from the browser is in 

I was looking at this exact same problem myself a year ago,
in order to develop a web based registry system for
multilingual domain names, which I haven't worked on since.

Browsers then did not submit the charset encoding along with data
nor could I find a pre-fabricated solution for best guessing encoding type.
This may have changed, please forward useful responses or your summary.

wrt to testing on different browsers, I found that although my 
utf-8 pages would display properly on 
IE4 (english + Japanese IME) on Win95/NT (english), 
that they didn't display properly on
IE4 (Japanese) on Win95 (Japanese).


A response I got on 13 May 1998 from Roman Czyborra was:
==============================================
> How do I tell what character set form data is submitted in?

There is a discussion of this issue in section 5 of RFC 2070.
Ideally, the client sends something like

Content-Type: application/x-www-form-urlencoded; charset=UTF-8

In practice, most browsers don't send the charset parameter and leave
you to guessing what the data might be supposed to mean.
Even Lynx 2-8-2 en Netscape 4.04 don't send it. 
==============================================

Jason Pouflis     (in Sydney, Australia)
jason@superannuation.net
0411 444 786  mobile
e.internet  pty ltd
   e.business
   e.commerce
   e.mail
  multilingual domain names

Received on Tuesday, 13 April 1999 18:52:24 UTC