Export (0) Print
Expand All
all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

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<element accept-charset="p" ... >
JavaScript

p = object.acceptCharset

 

Property values

Type: String

a space and/or comma-delimited list of case-insensitive charset values.

UTF-8

If the user enters characters that are not in the character set of the document containing the form, the UTF-8 character set is used. UTF-8 is the preferred format for multilingual text. Refer to Character Set Recognition for a complete list of recognized character sets.

UNKNOWN

Default value.

Standards information

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 is submitted in the character encoding specified for the document. If the form includes characters that fall outside the character set specified for the document, the application attempts to determine an appropriate character set. If an appropriate character set cannot be determined,the characters are encoded as HTML numeric character references. For more information on character sets and numerical character references, see HTML Character Sets.

See also

form

 

 

Show:
© 2014 Microsoft