File upload with special characters
Posted: Fri Jul 19, 2024 6:18 pm
Hello,
We are working with a file picker (client side) and the built-in function STM_FILE_OPEN + STM_FILE_READ (server side) to upload and parse a text file.
When we write the parsed values to the IBM i tables, the special characters are not written correctly (see example hereunder).
We did not find a solution in the documentation or on the forum.
Is there a way to solve this ?
Example:
Uploaded text file (UTF-8 encoded)
"éé"
"êê"
"%%"
"µµ"
"ëë"
"ùù"
"$$"
"££"
Table content:
"éé"
"êê"
"%%"
"µµ"
"ëë"
"ùù"
"$$"
"££"
Thanks in advance for your help!
We are working with a file picker (client side) and the built-in function STM_FILE_OPEN + STM_FILE_READ (server side) to upload and parse a text file.
When we write the parsed values to the IBM i tables, the special characters are not written correctly (see example hereunder).
We did not find a solution in the documentation or on the forum.
Is there a way to solve this ?
Example:
Uploaded text file (UTF-8 encoded)
"éé"
"êê"
"%%"
"µµ"
"ëë"
"ùù"
"$$"
"££"
Table content:
"éé"
"êê"
"%%"
"µµ"
"ëë"
"ùù"
"$$"
"££"
Thanks in advance for your help!