Copy link to clipboard
Copied
Hello,
I use Indesign CS3; when I try to insert the euro symbol before an xml element, it gives me this symbol: €.
The curious thing is that if I run my script outside of Indesign it works well.
My code:
myProdottoXmlElement.insertTextAsContent ("€ ", XMLElementPosition.beforeElement);
Any ideas?
Thanks
Copy link to clipboard
Copied
Yes -- that looks like UTF-8 encoding of the Euro character. Check if your script is saved as UTF-8 (it is, trust me on that).
To prevent your script saved as something else than plain ASCII, use Unicode notation for any characters outside ASCII range; in this case, use "\u20ac", to insert the Euro.
Copy link to clipboard
Copied
Great Jongware! It worked!
Also, could you tell me any resources where I can find Unicode notation?
Thanks
Copy link to clipboard
Copied
I'm behind a Windows machine now, so I can call up "charmap", which can show the Unicode value of just about every character in every font.
Not sure for the Mac ... perhaps simply use UnicodeChecker (you can search for "Euro" using one of the menus).
Copy link to clipboard
Copied
Many thanks Jongware.
Best regards
Copy link to clipboard
Copied
@Marco!
If you are interested in unicode charts go to http://unicode.org/charts/
and download pdf-charts from there.
Uwe
Copy link to clipboard
Copied
Mac has an OS character palette which has a lot of features including
the ability to search for characters by name...
You need to enable it in the International preference pane.
Harbs
Copy link to clipboard
Copied
Marco Lugli wrote:
Great Jongware! It worked!
Also, could you tell me any resources where I can find Unicode notation?
Thanks
Don't forget about the 2 InDesign resources. Hovering over the glyphs panel and selecting character with info panel open