Validate encoding - UTF8

  • Thread starter gimme_this_gimme_that
  • Start date
G

gimme_this_gimme_that

Is there a way that Javascript can validate that text in a textarea is
UTF-8?
 
M

Martin Honnen

Is there a way that Javascript can validate that text in a textarea is
UTF-8?

Text in a textarea as far as JavaScript in the HTML document sees it is
just a string of characters where those characters in modern browsers
(where modern means Netscape 4.06 and later and IE 4 and later) are
Unicode characters. Only a byte stream could be tested to conform to a
particular encoding like UTF-8 so I don't think you question makes any
sense as script in a browser does not deal with byte streams.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top