Skip to main content
Participant
February 15, 2019
Answered

How to encode non roman alphabet when exporting SVGs with ExtendScript

  • February 15, 2019
  • 1 reply
  • 373 views

I want to encode non roman alphabets as greek, russian etc, when exporting SVGs, how could I achieve that with ExtendScript?

Thank you

This topic has been closed for replies.
Correct answer adrianoc73410379

Hi, due the variety of languages/alphabets to be handled I wanted to make sure to export the files to SVG with the correct encoding (say UTF-8/UTF-16 for example) in ExtendScript.

For instance, is exportOptionsSVG.SVGDocumentEncoding = SVGDocumentEncoding.UTF8 the correct approach?

Update: exportOptionsSVG.SVGDocumentEncoding = SVGDocumentEncoding.UTF8 is the correct solution.

1 reply

Monika Gause
Community Expert
Community Expert
February 15, 2019

So you want this to be in the SVG code?

Open the SVG after exporting it and edit the code.

adrianoc73410379AuthorCorrect answer
Participant
February 17, 2019

Hi, due the variety of languages/alphabets to be handled I wanted to make sure to export the files to SVG with the correct encoding (say UTF-8/UTF-16 for example) in ExtendScript.

For instance, is exportOptionsSVG.SVGDocumentEncoding = SVGDocumentEncoding.UTF8 the correct approach?

Update: exportOptionsSVG.SVGDocumentEncoding = SVGDocumentEncoding.UTF8 is the correct solution.