PassoloApp.ConvertASCII2Unicode
The SAX Basic Engine uses Unicode to store text. If you read text from an ASCII file, the current system codepage is used to convert the text to Unicode. In case that the text is based on a different codepage, the text needs to be converted to Unicode using the correct codepage with ConvertASCII2Unicode.
Syntax
Expression.Convert ASCII2Unicode (Text as String, CodePage as Long) as String
Expression Required. Object of type PassoloApp
Text The text to be converted
CodePage The codepage to be used for the conversion
Example
' This text file has been written with codepage 1256 (Arabic)
Open "c:\Sample.txt" For Input As #1
Dim s As String
Line Input #1,s
s = PSL.ConvertASCII2Unicode(s, 1256)
...