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: 

any method to convert UTF-8 to ANSI

Former Member
0 Kudos

Dears,

when i use 'open dataset encoding default ' in our unicode system, is there any method to convert the output file to ANSI encoding

BR.

2 REPLIES 2

Former Member
0 Kudos

Hi,

UTF-8 uses one byte between 0 - 255. The files will be same as ANSI as long as sap don't add byte order mark EFBBBF (standard for UTF-8 files) at the begining of the file.

To verify, open a sap created file in a hex viewer, if first three bytes are EFBBBF, then they should be removed.

exporting data via open dataset encoding default (i.e. UTF-8). Also some using CL_FRONTEND_SERVICES GUI UPLOAD. And also IDOCS too.

Regards

0 Kudos

Dears,

now i have to use open dataset, but some characters in UTF-8 are not correct in ANSI, is there any method to do such convertion at side of SAP?

and the bein of the file is blank, nor EFBBBF or other encoding .

BR.