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

Open dataset statement for Big5 character encoding

Former Member
0 Likes
582

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.

1 REPLY 1
Read only

former_member156446
Active Contributor
0 Likes
418

how about changing the encodeing mode... hit F1 on encoding for more info.