Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
setting Unicode symbols from javascript
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
daniel  
View profile  
 More options May 17 2011, 3:49 am
Newsgroups: mozilla.dev.tech.xul
From: daniel <dan...@dots.de>
Date: Tue, 17 May 2011 09:49:38 +0200
Local: Tues, May 17 2011 3:49 am
Subject: Re: setting Unicode symbols from javascript
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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »