From:  Boris Zbarsky <>
Date:  09 Nov 2005 00:34:17 Hong Kong Time

Re: Unicode in the DOM ?


Emile Kroeger wrote:
> I'd like to access text from the webpage in unicode format. However,
> when I parse the DOM tree of the browser content

I'm not sure what you mean.  Parsing is the process that turns a stream of 
characters into a DOM tree.  You don't parse the DOM tree.

All data in the DOM in Mozilla is stored either in UTF16, UTF8, or ASCII 
(depending on the exact piece of data).

All data in JavaScript is in UCS-2.

So what are you doing exactly, to get something in a different encoding than one 
of those?  ;)