Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

filename problem when downloading a file from Kpro

Hello,

I'm trying to download a file from Kpro file server and the name of the file has 2 byte Korean character.

Here is the problem. When I download the file all the Korean letters in the filename is converted to underbar(_).

ex) original filename : 한글파일명abc.xls

downloaded filename : _____abc.xls

And this is the code.

-


lf_value = lf_mimetype.

pf_response->set_header_field( name = 'Content-Type'

value = lf_value ).

pf_response->delete_header_field( 'Cache-Control' ). "#EC NOTEXT

pf_response->delete_header_field( 'Expires' ). "#EC NOTEXT

pf_response->delete_header_field( 'Pragma' ). "#EC NOTEXT

lf_value = lf_filename.

CONCATENATE 'attachment; filename="' lf_filename '"' INTO lf_value.

pf_response->set_header_field( name = 'Content-Disposition'

value = lf_value ).

pf_response->set_data( lf_content ).

pf_navigation->response_complete( ).

-


Please help. Thank you.

Edited by: Ji Yeob Kim on May 7, 2009 1:06 PM

Edited by: Ji Yeob Kim on May 7, 2009 1:06 PM

Former Member
Not what you were looking for? View more on this topic or Ask a question