07-02-2007 6:35 AM
Downloading a program using datasets and wants it UTF-8 encoded.
Anyway to achieve it in 4.6c?
07-02-2007 6:46 AM
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
07-02-2007 6:46 AM
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
07-02-2007 7:07 AM
Can we use datasets option and achieve UTF-8 encoding while downloading files?
07-02-2007 7:20 AM
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