-
Nilanjan Chatterjee
- PowerBuilder
- Thursday, 9 April 2026 04:55 AM UTC
Hi All,
We have upgraded our code from PB2017 to PB2022. Post upgrade we are observing that when our code is trying to read and upload data from an external .txt file which contains French characters is causing an issue. It is not able to read the file correctly when the encoding type of the file is kept UTF-8 or ANSI. This was not the case when we did the same with PB2017. But once we change the encoding type of the file to UTF-16LE the code is able to read the French characters in the file.
We are reading from the text file using the below lines of code
dw.ImportFile("FileName.txt", 1)
Can we make changes in the code so that it is able to read the ANSI or UTF-8 files?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.