HTML <form> accept-charset Attribute

❮ HTML <form> tag

Example

<form action="action.php" accept-charset="utf-8">

Meaning

accept-charset attribute specifies the list of character encodings for input data that must be accepted by the server processing the form.

The value is a space- or comma-delimited list of character sets as defined in RFC 2045. The default value for this attribute is the reserved value unknown.


Standard Syntax

<form accept-charset="characterSet">



Browser Support




Status







Attribute Values

Value Description
characterSet Space-separated character encodings the server accepts.

Most common values:

  • UTF-8 - Character encoding for Unicode
  • ISO-8859-1 - Character encoding for the Latin alphabet
❮ HTML <form> tag