I use javascript in a calculation script in a text field in Nitro PDF. I write this:
var array = ["randomletters", "randomletters2"];
var text = new String(array[0]);
var result = text.toString();
this.getField("nameofthetextfield").value = result;
It works but the letters appear in a different unicode and incorrect like some other language. I want to use charset utf-8. How can I make the letters appear in the textfield exactly like randomletters?