plugins.ngdesktopfile.writeTXTFileSync file encoding issue

Forum to discuss the new web client version of Servoy.

plugins.ngdesktopfile.writeTXTFileSync file encoding issue

Postby rph » Fri Oct 22, 2021 10:38 am

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.

Code: Select all
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
rph
 
Posts: 75
Joined: Wed Aug 10, 2011 11:44 am
Location: Cham, Switzerland

Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 6 guests