‎2009 Apr 20 4:34 AM
I download a txt file in sap application server via open dataset statament.but the content of chinese character is rubbish character.Please help!!!
my program code:
TYPE-POOLS dset.
FIELD-SYMBOLS <fs_data> TYPE ANY.
DATA l_attri TYPE dset_attributes.
OPEN DATASET i_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT MESSAGE e_error.
CHECK sy-subrc = 0.
GET DATASET i_file ATTRIBUTES l_attri.
l_attri-changeable-code_page = '8300'.
SET DATASET i_file ATTRIBUTES l_attri-changeable.
LOOP AT it_data ASSIGNING <fs_data>.
TRANSFER <fs_data> TO i_file.
ENDLOOP.
CLOSE DATASET i_file.
‎2009 Apr 20 4:55 AM
how about changing the encodeing mode... hit F1 on encoding for more info.