Easy Tutorial
❮ Prop Nav Appcodename Css Inherit ❯

acceptCharset Attribute


Definition and Usage

The acceptCharset attribute sets or returns a comma-separated list of character sets that the server accepts.

Syntax

The acceptCharset attribute can have the following values:

Value Description
character-set One or more character sets that the server accepts. Multiple character sets are separated by commas. Common values: UTF-8 - Unicode encoding<br>ISO-8859-1 - Character encoding for Latin letters. Theoretically, any character encoding can be used, but not all browsers support them. Therefore, use common character encodings. For all character encodings, refer to the character settings reference manual on this site.

Browser Support

All major browsers support the acceptCharset attribute.


Tips and Notes

Note: The accept-charset attribute does not work correctly in IE browsers. If accept-charset="ISO-8859-1", data will be sent using "Windows-1252" encoding.


Example

Return the accept-charset attribute value of a form:

The output of the above example:

❮ Prop Nav Appcodename Css Inherit ❯