My html form has a few input text fields which can potentially get characters from Chinese, japanese, european, special characters like £, etc. So, in short, unicode characters.
To process these values at the server side (with php), can I assume that all browsers by default encode these characters in UTF-8 format at the time of form submission.
Or is there is way to tell the browser to always submit these characters as UTF8 encoded , so that we can use the utf8_decode to process these values ?
Thanks.
For submit data in your Content-type encoding
XML HTTP Requests can send in UTF-8 charset
The way submit form in UTF-8 send it by XML HTTP Request or use UTF-8 charset in your site
Excerpt from here
Set the character encoding for the form page before you output the HTML.