I have a script for photoshop which outputs the name of a text layer and layer content into Excel CSV file. It works fine if the text is english but if the text is Arabic/Thai it was displayed like this "??????". How can I display these texts properly?
My script gets the layername and layer content like this:
var iLayer = app.activeDocument.activeLayer.textItem;
var LayerContents = iLayer.contents;
Then output the names in the Excel file like this:
var Names =[ ];
Names.push([LayerName + "," + LayerContents]);
I tried changing the font style to Arial for Arabic and Tahoma for Thai, but it doesn't worked. I even tried converting LayerContents.toString();