HTML <form> accept-charset Attribute
HTML <form> tag
Example
Use of the accept-charset attribute in a form:
<form action="form_action.asp"
accept-charset="ISO-8859-1">
First name: <input type="text" name="fname" /><br />
Last name: <input type="text" name="lname" /><br />
<input type="submit" value="Submit" />
</form> |
Try it yourself »
|
Definition and Usage
The accept-charset attribute specifies the character-sets the server can handle for form-data.
Browser Support

The accept-charset attribute is supported by all major browsers, except Internet Explorer.
Note: The accept-charset attribute does not work properly in Internet
Explorer. If accept-charset="ISO-8859-1", IE will send data encoded as
"Windows-1252".
Syntax
| <form accept-charset="value"> |
Attribute Values
| Value |
Description |
| character_set |
One or more character-sets that the server can handle. To specify more than one character set, separate the sets with a comma.
Common values:
- UTF-8 - Character encoding for Unicode
- ISO-8859-1 - Character encoding for the Latin alphabet
In theory, any character encoding can be used, but no browser understands all of them. The more widely a
character encoding is used, the better the chance that a browser will understand it.
To view all available character encodings, go to our Character sets reference.
|
HTML <form> tag

Need an easy way to get data into XML, or transform XML to another format?
MapForce lets you map XML data to/from any combination of XML, database, flat file, Excel 2007, XBRL, or Web services data.
Then it transforms data instantly or auto-generates royalty-free data integration code for recurrent conversions.
New features in Version 2010!
Download a free, fully functional 30-day trial to experience the following features:
- Easy-to-use, graphical data mapping interface
- Instant data transformation
- XSLT 1.0/2.0 and XQuery code generation
- Java, C#, and C++ code generation
- Advanced data processing functions
- Support for all major relational databases including SQL Server, IBM DB2, Oracle, and more
- Visual Studio & Eclipse integration
Download a fully-functional trial today!
|
|
|
|