2010 Sep 22 11:10 AM
Hi Experts,
I have a text file which contains Japanese character. when i try uploading the file directly to application server using tcode CG3Z the Japanese characters are getting replaced with some symbols. But when i read the text file using GUI_UPLOAD and then write it back to the application server japanese characters are getting displayed. what could be the issue here? how this can be resolved?
warm regards,
abdul hakim
2010 Sep 22 11:42 AM
In case of CG3Z, internally there is a call to the FM 'C13Z_FILE_UPLOAD_ASCII' where you'll see this statement:
* open dataset for writing
OPEN DATASET i_file_appl FOR OUTPUT MESSAGE e_os_message
IN TEXT MODE ENCODING NON-UNICODE.Please note the ENCODING addition is set to NON-UNICODE. But in your custom code you must be using ENCODING DEFAULT which sets the encoding to UTF-8 format because of which the Japanese characters are represented correctly.
Hope this helps.
BR,
Suhas
Hi Experts,
I have a text file which contains Japanese character. when i try uploading the file directly to application server using tcode CG3Z the Japanese characters are getting replaced with some symbols. But when i read the text file using GUI_UPLOAD and then write it back to the application server japanese characters are getting displayed. what could be the issue here? how this can be resolved?
warm regards,
abdul hakim
2010 Sep 22 11:42 AM
In case of CG3Z, internally there is a call to the FM 'C13Z_FILE_UPLOAD_ASCII' where you'll see this statement:
* open dataset for writing
OPEN DATASET i_file_appl FOR OUTPUT MESSAGE e_os_message
IN TEXT MODE ENCODING NON-UNICODE.Please note the ENCODING addition is set to NON-UNICODE. But in your custom code you must be using ENCODING DEFAULT which sets the encoding to UTF-8 format because of which the Japanese characters are represented correctly.
Hope this helps.
BR,
Suhas