Output Arabic/Thai text in Excel file using Photoshop JavaScript
<p>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?</p>

<p>My script gets the layername and layer content like this:</p>

<pre><code>var iLayer = app.activeDocument.activeLayer.textItem;
var LayerContents = iLayer.contents;
</code></pre>

<p>Then output the names in the Excel file like this:</p>

<pre><code>var Names =[ ];
Names.push([LayerName + "," + LayerContents]);
</code></pre>

<p>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();</p>