Click here to get back home

Forms: Where is the character encoding (eg. UTF) defined?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Forms: Where is the character encoding (eg. UTF) defined? David Winter 10-29-2004
Get Chitika Premium
Posted by David Winter on October 29, 2004, 3:32 pm
Please log in for more thread options
If I set up a form and have an ASP script process the users's input,
which component defines the character set of that input?

- His browser/OS?
- The encoding attribute in the doctype declaration?
- The charset attribute in the content-type meta tag?
- The script processing the form?
- ..?

TIA.


Posted by Leif K-Brooks on October 29, 2004, 9:46 pm
Please log in for more thread options
David Winter wrote:
> If I set up a form and have an ASP script process the users's input,
> which component defines the character set of that input?
>
> - His browser/OS?
> - The encoding attribute in the doctype declaration?
> - The charset attribute in the content-type meta tag?
> - The script processing the form?
> - ..?

The browser will decide the encoding sent to the server. It may delegate
the authority to the OS, or decide based on the encoding that the
document uses. The library you use to handle HTTP on the server side may
also re-encode what the browser sends.


Posted by DU on October 29, 2004, 9:56 pm
Please log in for more thread options
David Winter wrote:
> If I set up a form and have an ASP script process the users's input,
> which component defines the character set of that input?
>
> - His browser/OS?
> - The encoding attribute in the doctype declaration?

There is no attribute encoding in the doctype declaration.

> - The charset attribute in the content-type meta tag?
> - The script processing the form?
> - ..?
>
> TIA.

http://www.w3.org/TR/html4/interact/forms.html#adef-accept-charset

DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Mozilla 1.7.3 :)


Posted by Jukka K. Korpela on October 30, 2004, 8:16 am
Please log in for more thread options
wintermute_101_nospam@yahoo.de (David Winter) wrote:

> If I set up a form and have an ASP script process the users's input,
> which component defines the character set of that input?

A very complex issue. Normally the encoding ("character set") is the same
as the encoding of the page containing the form.
I'd suggest starting from "FORM submission and i18n",
http://ppewww.ph.gla.ac.uk/~flavell/charset/form-i18n.html

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html



Similar ThreadsPosted
Forms and encoding August 21, 2004, 7:35 pm
Re: Character encoding April 26, 2008, 12:39 pm
Simple high-ascii character encoding August 25, 2005, 3:52 am
Forms - howto use return for submitting in Forms? April 6, 2005, 4:08 pm
XHTML 1.0 Validator: No attributes, elements not defined... August 11, 2004, 3:21 am
CSS: Problems with doubly defined colors (according to validator) May 20, 2007, 5:26 pm
"force" user to use site in defined order? April 1, 2008, 1:54 am
Help with forms. January 29, 2006, 10:37 pm
FOrms July 10, 2008, 10:05 am
Nested forms August 20, 2004, 9:53 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap