Invalid characters used in text downloaded from external api
Hi
I have script, which downloads texts from external api url and fill this texts into project TextLayer/TextDocument components.
I have problem with some glyphs, that are not displyed correctly
for example string from api (content utf8) is
Rázová vlna by DRÉN
is displayed in TextDocument as
Rázová vlna by DRÉN
part of code is simple:
var textProp = layer.property("Source Text");
var textDoc = textProp.value;
textDoc.text = content.value; // <--- here is content downloaded from api
textProp.setValue(textDoc);
How can I fix this?
When I write characters manually all is OK.
Data from script are valid characters.
Have you some hints for me?
