Click to Rate and Give Feedback
Properties
 acceptCharset Property
ACCEPT-CHARSET Attribute | acceptCharset Property

Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.

Syntax

HTML<FORM ACCEPT-CHARSET = sChar... >
Scripting[ sChar = ] FORM.acceptCharset [ = v ]

Possible Values

sCharString that specifies or receives a space and/or comma-delimited list of case-insensitive charset values.
UTF-8If the user enters characters that are not in the character set of the document containing the form, the UTF-8 character set will be used. UTF-8 is the preferred format for multilingual text. Refer to Character Set Recognition for a complete list of recognized character sets.

The property is read/write. The property has a default value of UNKNOWN.

Remarks

A character encoding is a method of converting a sequence of bytes into a sequence of characters.

If ACCEPT-CHARSET is not specified, the form will be submitted in the character encoding specified for the document. If the form includes characters that fall outside the character set specified for the document, Windows Internet Explorer will attempt to determine an appropriate character set. If an appropriate character set cannot be determined, then the characters will be encoded as HTML numeric character references. For more information on character sets and numerical character references, see HTML Character Sets.

Standards Information

This property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 World Wide Web link.

Applies To

FORM
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker