Hello Sander, On 8/1/07, SanderElias <[EMAIL PROTECTED]> wrote: > I needed to insert an euro sign in a newly created dome node, and it > backfired on me. I think I must miss something! > > I tried this: > var newDiv = DIV(null,"€ 11,-") > document.appendChild(newDiv)
You will have to use the unicode escape sequence, like this: var newDiv = DIV(null,"\u20ac 11,-") document.appendChild(newDiv) If your html or js file where you keep this code is saved in utf-8 and served with the right content encoding, I believe you can also just type in the euro symbol directly. Arnar ps. Sorry for the double post Sander, forgot to reply to the list earlier. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
