You can never be 100% sure, but well-behaved user agents usually submit the data in the encoding that was used in the page containing the form. You can also specify which charsets you accept by using the "accept-charset" attribute of the form element. Some user agents might also specify the charset in the Content-Type header for POST requests.