W3C home > Mailing lists > Public > www-international@w3.org > April to June 1999

Re: Form response charset

From: Takayuki Tei <taka@netscape.com>
Date: Tue, 13 Apr 1999 12:44:01 -0700
Message-ID: <37139E81.4BF6FF82@netscape.com>
To: Jesse Hall <jesse@Novonyx.COM>
CC: www-international@w3.org
Hi Jesse,

One of the solution to your question is to specify charset of your original document.
Major browsers send back to server in the character encoding being used in the form.
For example, server sends a HTML document like below,

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=x-sjis">
<!-- some form -->

browser send inputs in Shift_JIS encoding.  If you want to receive it in UTF-8,
specify UTF-8 instead of x-sjis.


Jesse Hall wrote:

> Hello,
> I'm not sure this is the proper forum, but I've searched everywhere I could
> think of and couldn't find an answer to my question. If there's a more
> appropriate place for me to look/ask, please let me know.
> 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 (e.g. for a INPUT TYPE=TEXT or a TEXTAREA
> field).
> I'm using UTF-8 for all the pages I send. The browsers I've tested with handle
> this properly. However, what I'm getting back from e.g. a Japanese browser (I've
> tried two) running on Japanese Windows is not UTF-8. The best solution from my
> point of view is to always get the response in UTF-8, but if there is a way to
> determine the charset of the returned data, I can of course do the conversion
> myself if necessary.
> TIA,
> Jesse Hall
> jesse@novonyx.com

Takayuki Tei
mailto:taka@netscape.com http://people.netscape.com/taka/
Received on Tuesday, 13 April 1999 15:43:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 21 September 2016 22:37:18 UTC