Application Development 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: 

Open/Read UTF8 File - Allignement Issue

Former Member
0 Kudos

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

naimesh_patel
Active Contributor
0 Kudos

Try with this syntax to open your file

Open dataset fname in text mode encoding UTF8 ignoring conversion errors

Regards,

Naimesh Patel

0 Kudos

already tried that and it did not work.