unicode - How does the browser encode non-ASCII characters when posting them to the server? -
is there standard browser http-posting follows? if not can server detect encoding in way? is there standard browser http-posting follows? there html5 has codified it, it's not straightforward. the encoding used browser encode text when submitted form same encoding used view page containing form. if have included content-type: ...;charset=... http header or <meta> tag encoding used unless user deliberately changes encoding of page browser settings. users won't change setting unless page has been served wrong charset , unreadable. (even then, setting getting more obscure in modern browsers.) if don't set encoding of page containing form anything; it'll non-utf encoding associated user's region, bets off. if include attribute accept-charset="..." in <form> element supposed form submitted in encoding, regardless of encoding of form page (whether set page or chosen user). unfortunately, accept-charset broken in ie: