I have a html page that my users can write a text and send as a text message.
I want to detect the character set of the text that they want to send.
for example my text is:
Hi there. ب
This text will detect as utf-8 in my friend Web Site.
I want to do this for myself.
can any body help?
sorry for bad english.
I have a html page that my users can write a text and send
Share
You don’t detect the encoding of the webpage and its
inputelements, you specify it. Just go with UTF-8, and whatever is pasted in will be UTF-8. To do this, either put this in your<head>:or have your web server insert this header:
UTF-8 will accomodate almost all of the characters in use today.