Detect characterSet of a text area using javascript
<p>I have a html page that my users can write a text and send as a text message.<br>
I want to detect the character set of the text that they want to send.<br>
for example my text is:<br>
Hi there. ب<br>
This text will detect as utf-8 in my friend Web Site.<br>
I want to do this for myself.<br>
can any body help?<br>
sorry for bad english.  </p>
