Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification.
The "FAQ/CharacterEncoding" page has been changed by GarretWilson: https://wiki.apache.org/tomcat/FAQ/CharacterEncoding?action=diff&rev1=27&rev2=28 Comment: Clarified legacy percent encoding of form submissions in HTML 4.01. ''Percent Encoding for `application/x-www-form-urlencoded`'' - The [[https://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1|HTML 4.0.1]] specification indicated that percent-encoding of non-ASCII characters of `application/x-www-form-urlencoded` (the default content type for HTML form submissions) should be performed using `US-ASCII` byte sequences. However [[https://url.spec.whatwg.org/#concept-urlencoded-serializer|HTML 5]] changed this to use UTF-8 byte sequences, matching the modern percent encoding for URLs. Modern browsers therefore percent-encode UTF-8 sequences when submitting forms using `application/x-www-form-urlencoded`. + The [[https://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1|HTML 4.01]] specification indicated that percent-encoding of any non alphanumeric characters of `application/x-www-form-urlencoded` (the default content type for HTML form submissions) should be performed using `US-ASCII` byte sequences. However [[https://url.spec.whatwg.org/#concept-urlencoded-serializer|HTML 5]] changed this to use UTF-8 byte sequences, matching the modern percent encoding for URLs. Modern browsers therefore percent-encode UTF-8 sequences when submitting forms using `application/x-www-form-urlencoded`. The servlet specification, however, requires servlet containers to interpret percent-encoded sequences in `application/x-www-form-urlencoded` as `ISO-8859-1`, which in a default configuration will result in corrupted content because of the charset mismatch. See below for how this can be reconfigured in Tomcat. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org