Re: UTF-8 in window title

Neil <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
daniel wrote:

> I like to use a string containing UTF-8 characters as a window title 
> for my XUL application:
>
>   document.title = whatever;

JavaScript uses UTF-16, not UTF-8. If your string contains UTF-8 
characters because e.g. it was read from a file, you will need to 
convert that to UTF-16 first, or use a different way of reading the file 
that gives you UTF-16 directly.

-- 
Warning: May contain traces of nuts.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.