Re: Browser Converts No ASCII for JS Text Node or any Text Attribute
- From: Martin Honnen <mahotrash@xxxxxxxx>
- Date: Fri, 29 Jun 2007 18:28:32 +0200
vunet.us@xxxxxxxxx wrote:
The ü syntax is a numeric character reference meant for an HTML
or XML parser. createTextNode does not do any HTML or XML parsing.
var myASCII = "Do not remove text ü and do not remove text,
blah blah";
document.createTextNode(myASCII);
and there are plenty of different strings containing all possible
ASCII values. What would you recommend in that case. Is it possible to
convert all ASCII to Unicode, then?
ASCII is a subset of Unicode. As said, ü is a numeric character reference to be parsed by an HTML or XML parser. That has nothing to do with ASCII. If you have such character references then you need to use an HTML parser for instance by setting innerHTML of an HTML element node.
--
Martin Honnen
http://JavaScript.FAQTs.com/
.
- References:
- Browser Converts No ASCII for JS Text Node or any Text Attribute
- From: vunet . us
- Re: Browser Converts No ASCII for JS Text Node or any Text Attribute
- From: Martin Honnen
- Re: Browser Converts No ASCII for JS Text Node or any Text Attribute
- From: vunet . us
- Browser Converts No ASCII for JS Text Node or any Text Attribute
- Prev by Date: Re: Browser Converts No ASCII for JS Text Node or any Text Attribute
- Next by Date: Javascript countdown: editing?
- Previous by thread: Re: Browser Converts No ASCII for JS Text Node or any Text Attribute
- Next by thread: Javascript countdown: editing?
- Index(es):
Relevant Pages
|