字符转换
来源:互联网 发布:知乎童谣事件 编辑:程序博客网 时间:2024/06/05 11:47
1, data: obj_out type ref to cl_abap_conv_out_ce,
char_test type string,
hex_test type xstring,
obj_in type ref to cl_abap_conv_in_ce.
obj_out = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' ).
call method obj_out->convert
exporting
data = char_test
importing
buffer = hex_test.
2,
obj_in = cl_abap_conv_in_ce=>create( encoding = 'UTF-8' ).
call method obj_in->convert
exporting
input = hex_test
importing
data = char_test.