Details on submitting forms in HTTP with national characters |
by Anton Tagunov |
The server choses a character encoding for a page, sends it to the browser in the Content-Type HTTP header and then sends character data encoded with this character encoding:
The browser similarly peeks up the character encoding from the Content-Type header, encodes form parameters in this encoding and sends them back to server:
In our previous example with a.jsp and b.jsp pages, provided that we have chosen the UTF-8 encoding this will look like: (the page that contains the web form)
And the result of submitting the form looks like