For example, chinese text(GB2312) is pasted into a text box(or text area) of a html page and the form is posted. At the server side, is there any means by which this character set gets detected?
How would this detection behave if texts belonging to different character sets are pasted in a text box?