3 Replies Latest reply on Mar 9, 2010 12:57 AM by Harbs.

    Chinese characters displaying as square

    enableDeepak Level 1

      Hi,

       

      I am trying to update a text frame with following script. It works well for all ascii but if chinese characters are entered in text, it displays them as square. I have language pack installed on Indesign machine.

       

      //----script starts-----
      var myDocument = app.open(File('//192.168.1.189/Clients/44/ArtBuild/Artworks/60951.indd'));
      var myTextFrame = objPage.textFrames.itemByID(tmp_frmid);
      var paragraph1 = myTextFrame.paragraphs.item(0);
      paragraph1.contents = "Hello ャンペー"
      myDocument.save('MyFile.indd');

      //-----script ends ----

       

      This updates indd file to display

      Hello□□□□

       

      What can be done so that unicode displays as it is.