Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: setting Unicode symbols from javascript

9 views
Skip to first unread message
Message has been deleted

daniel

unread,
May 17, 2011, 3:49:38 AM5/17/11
to dev-te...@lists.mozilla.org
Am 16.05.2011 16:32, schrieb Макс Долгов:
> I'm stuck trying to add some special symbols such as "$ (&dollar)" or "€
> (&euro)" dynamically from script. When I set them as static in XUL markup -
> everything works fine:

> log('nv:' + nv); // nv:€

Have a look at the website below to find out how to escape UTF-8 symbols
correctly in javascript:

http://0xcc.net/jsescape/

in your case

log('nv:\u20AC')

should do the trick.

0 new messages