Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Open/Read UTF8 File - Allignement Issue

Former Member
0 Likes
512

I have a Microsoft Access file that is saved as UTF8 file. This file does contain both English and Chinese characters. Using FTP to move file to AS400 SAP directory. Viewed file in AL11 looks good, can see both English and Chinese characters.

ABAP pgm uses the following open command/options.

"Open dataset fname in text mode encoding default ignoring conversion errors"

No problem openning the file. However, when pgm issues the following read command only the fields containing english align correctly with structure.

"read dataset fname into structure."

I have tried setting the local language to '1' and then open the file. Did not change results, alignment continued to occur.

SAP Info:

OS = AS400

Version = 4.7

Unicode = Yes

I have a Microsoft Access file that is saved as UTF8 file. This file does contain both English and Chinese characters. Using FTP to move file to AS400 SAP directory. Viewed file in AL11 looks good, can see both English and Chinese characters.

ABAP pgm uses the following open command/options.

"Open dataset fname in text mode encoding default ignoring conversion errors"

No problem openning the file. However, when pgm issues the following read command only the fields containing english align correctly with structure.

"read dataset fname into structure."

I have tried setting the local language to '1' and then open the file. Did not change results, alignment continued to occur.

SAP Info:

OS = AS400

Version = 4.7

Unicode = Yes

2 REPLIES 2
Read only

naimesh_patel
Active Contributor
0 Likes
457

Try with this syntax to open your file

Open dataset fname in text mode encoding UTF8 ignoring conversion errors

Regards,

Naimesh Patel

Read only

0 Likes
457

already tried that and it did not work.