469,336 Members | 5,570 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,336 developers. It's quick & easy.

Validate encoding - UTF8

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

Aug 31 '05 #1
1 3914


gi*******************@yahoo.com wrote:
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.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Sep 1 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jonas Bush | last post: by
5 posts views Thread by DbNetLink | last post: by
7 posts views Thread by Jim Lawton | last post: by
2 posts views Thread by Jim Lawton | last post: by
11 posts views Thread by Dale | last post: by
7 posts views Thread by EmeraldShield | last post: by
reply views Thread by Tim Arnold | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.