Hi All,
In BC SaaS version, it is only possible to export a file with TextEncoding::Windows/UTF-8/ASCII.
But one our customer want to export file with specific encoding type (shift_jis) and which is possible in NAV and BC Onprem versions with help of .NET variables. Is there any workaround to achieve below source code in BC SaaS version?
//[DotNet Variable: FilestreamWriter , FileEncoding ]
TextFile.WRITEMODE(TRUE);
TextFile.TEXTMODE(TRUE);
TextFile.CREATE(FileName);
TextFile.CREATEOUTSTREAM(FileOutStream);
FilestreamWriter := FilestreamWriter.StreamWriter(FileOutStream,FileEncoding.GetEncoding('shift_jis'));
Thanks