ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How to read UTF-8 text file on the IFS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to read UTF-8 text file on the IFS

    I have a 3rd party Windows application where the user exports data into text files. I have an RPG ILE program that opens the text file via QNTC on the IFS using the open() API. The RPG program worked fine when the Windows software exported the text file with ANSI encoding. Now, they have switched to UTF-8 and my program will no longer read the file. Is there a way that I can open the file so that my RPG ILE program understands UTF-8? My program will be parsing the data and writing it to a PF. Thanks, Pat

  • #2
    It should be a simple matter of setting the codepage on the open() API.

    Comment

    Working...
    X