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

Euro symbol error

Explorer ,
Mar 22, 2010 Mar 22, 2010

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

TOPICS
Scripting

Views

2.0K

Translate

Translate

Report

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

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Great Jongware! It worked!

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

Thanks

Votes

Translate

Translate

Report

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

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Many thanks Jongware.

Best regards

Votes

Translate

Translate

Report

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

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

Votes

Translate

Translate

Report

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

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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