Quantcast
Channel: Adobe Community : Popular Discussions - Premiere Pro SDK
Viewing all articles
Browse latest Browse all 53010

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

$
0
0

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.readFilethat 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


Viewing all articles
Browse latest Browse all 53010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>