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

UTF-8 encoding in 4.6C

prasad_reddy9
Explorer
0 Likes
712

Downloading a program using datasets and wants it UTF-8 encoded.

Anyway to achieve it in 4.6c?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
612

Hi,

Check this link, it may helpful to you.

/people/ulrich.brink/blog/2005/08/18/unicode-file-handling-in-abap

Try to see the class CL_ABAP_UTF8STRING_TAB

<b>Reward points</b>

Regards

Message was edited by:

skk

3 REPLIES 3
Read only

Former Member
0 Likes
613

Hi,

Check this link, it may helpful to you.

/people/ulrich.brink/blog/2005/08/18/unicode-file-handling-in-abap

Try to see the class CL_ABAP_UTF8STRING_TAB

<b>Reward points</b>

Regards

Message was edited by:

skk

Read only

prasad_reddy9
Explorer
0 Likes
612

Can we use datasets option and achieve UTF-8 encoding while downloading files?

Read only

0 Likes
612

hI,

use the Transfer to DATASET to write out the files to the APP Server. It doesn't matter if you send it to the app server (via dataset) or frontend (via GUI_DOWNLOAD); just be sure to use binary transfer.

I send the XML output directly in to a binary string (no internal table). I then send that to the app server as the binary string.

clear ressize.

ressize = ostream->get_num_written_raw( ).

open dataset filename1 for output in

binary mode message message_text.

transfer b_xml to filename1 length ressize.

close dataset filename1.

<b>Reward points</b>

Regards