I have a script that places a Markdown file into a text frame in InDesign. Unfortunately, InDesign doesn't seem to be picking up on the UTF-8 encoding, as quotation marks and other things are ending up as “
.
I tried setting file.encoding
to "UTF-8"
based on this question, all to no avail. Here's the relevant code as it stands:
var file = File.openDialog ("Select content markdown" , "Markdown:*.md", false );
file.encoding = "UTF-8";
myFirstTextframe.place(file);
How can I resolve this problem?