plugins.ngdesktopfile.writeTXTFileSync file encoding issue

Hi

We must create a (local) file with NGDesktop that must have CP 1252 (windows-1252) (ANSI).

We used the following code, but result is “false” and the file will not be created.

var result = plugins.ngdesktopfile.writeTXTFileSync(destinationFilePath, "test", "windows-1252");

The default codepage “utf8” works!

We’ve tried the following spellings:

  • “windows-1252”
  • “Cp1252”
  • “cp1252”
  • “cp-1252”
  • “CP 1252”

all with no success. How can we produce a file with encoding “windows-1252”?

Thanks for any feedback.

Best
Roland