-
Louis Arena
- PowerBuilder
- Tuesday, 3 February 2026 11:32 PM UTC
I have a JSON result set that looks like the following.
[
{"id":"7d3bcd00-1fa8-4632-a733-08f504e171d4",
"fileName":"Jim W2.jpg",
"generalComments":"","status":null,"statusDate":null,"migrationStatus":"NEW","uploadedBy":null,"uploadDate":"2026-02-02",
"fileSize":2818481},
{"id":"e33bc946-b93d-4e83-8437-05dfa1277d14",
"fileName":"Jimâs paystub SBA dues highlighted.jpg",
"generalComments":"",
"status":null,"statusDate":null,"migrationStatus":"NEW","uploadedBy":null,"uploadDate":"2026-02-01",
"fileSize":495421}
]
Please note the filename on the second record. Apparently it is UTF-8 encoding. Also in a text editor it shows the name as 'Jimâ??s paystub SBA dues highlighted.jpg' with the ? inside the boxes above.
When I use
s_s3_files.filename[i] = json_files.getitemstring(ll_objectitem,'fileName')
to get the file name into an array it is encoded in Unicode, that is what all my research says. See the image attached to show what it looks like in PB.
How do I fix this because all the code examples I see, including from AI do not work! I tried the reading it into a blob, encoding it etc. etc.
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.