Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Euro symbol error

Explorer ,
Mar 22, 2010 Mar 22, 2010

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

TOPICS
Scripting
2.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 22, 2010 Mar 22, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 22, 2010 Mar 22, 2010

Great Jongware! It worked!

Also, could you tell me any resources where I can find Unicode notation?

Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 22, 2010 Mar 22, 2010

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).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 22, 2010 Mar 22, 2010

Many thanks Jongware.

Best regards

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 22, 2010 Mar 22, 2010

@Marco!

If you are interested in unicode charts go to http://unicode.org/charts/

and download pdf-charts from there.

Uwe

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 22, 2010 Mar 22, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Mar 22, 2010 Mar 22, 2010
LATEST

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

euro.PNG

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines