Posts

Showing posts with the label utf-16

Javascript how can I find character “utf-16” at string

Image
Clash Royale CLAN TAG #URR8PPP Javascript how can I find character “utf-16” at string Have a question. Sorry for my English. I have a string. Customer enter SMS text at text-area. How can I find the existing character of utf-16 at the string or not? utf-16 At php I check this code: if (iconv("UTF-8","UTF-8//IGNORE",$_entry_text) != $_entry_text) { // exist utf-16 } How can I at Javascript check? Try to find an answer the second day (( Thanks. I might be mistaken, or not understanding your question properly, but if they do enter it in a textarea, then the encoding should be set by the browser, and hence by your own page's encoding. – Kaiido 1 hour ago 3 Answers 3 If it's a ...