3 Replies Latest reply on Jan 6, 2017 7:04 AM by andymees@aje

    Is it possible to read a UTF-16 encoded file text file using cep.fs.readFile?

    andymees@aje Level 3

      Hi All

       

      I'm on a Mac, trying to read a UTF-16 encoded xml/text file from my HTML5 extension panel in Premiere Pro CC2017.

      My javascript statement, result = window.cep.fs.readFile(myFilePath);  returns without error, but result.data is empty.

      If I open the target file in a text editor application (e.g. TextEdit) and resave it with UTF-8 encoding then everything works fine.

       

      Is there any alternative to window.cep.fs.readFile that I can use from my HTML5 extension panel that would allow me to successfully read/convert a UTF-16 encoded file?

       

      Many thanks in advance

      Andy