Accent Problem Running a pre-built AS in JS using doScript
Hi.
I am working with some software that builds dynamic AS files that are used to build pages in InDesign. In order to keep this in a JS environment, I am writing my own plugin to read these files, and using doScriot to carry out the AS.
The AS files are fine, and build finished pages with no problems. However, with non standard characters such as accents, copyrights etc I am getting incorrect text on my page.
See below.
...
tell page 1 of doc1
set tx0 to make text frame with properties{geometric bounds:{"33.1mm", "10.0mm", "315.9mm", "32.85714285714286mm"}, contents:"P1L0H0S0R1C1
é = 00E9
É = 00C9
á = 00E1
í = 00ED
ó = 00F3
ú = 00FA
" as Unicode text}
...
but when I process this through JS, I get this:
...
tell page 1 of doc1
set tx0 to make text frame with properties{geometric bounds:{"33.1mm", "10.0mm", "315.9mm", "32.85714285714286mm"}, contents:"P1L0H0S0R1C1
é = 00E9
É = 00C9
√° = 00E1
í = 00ED
ó = 00F3
√∫ = 00FA
" as Unicode text}
...
Is there a certain filter I need to be parsing the text through to keep the characters?
Many Thanks in advance
Roy Marshall
