The SAS Output Delivery System and reporting techniques

Printing Chinese characters using ODS EXCEL

Reply
New Contributor
Posts: 2

Printing Chinese characters using ODS EXCEL

Hello,

 

   I have the following issue. I have a data set that contains some Chinese text. The data set is encoded in latin1, on a Linux system

 

    Encoding             latin1  Western (ISO) 

   

    I am trying to print some of these text fields that have Chinese text to an excel file using ODS EXCEL.

 

     ods excel file="/project/Chinese_text.xlsx" style=sansPrinter;

 

     proc print data=project_data noobs label;

        var id chinese_text other_text;

    run;

 

     ods excel close;

 

      The Excel file has rubbish for the chinese_text column. The other columns are correct and the encoding of the excel file is 'utf8'.

 

    I would appreciate any suggestions anyone has in resolving this issue.

 

Thanks,
  

   

Super User
Posts: 19,100

Re: Printing Chinese characters using ODS EXCEL

That's an interesting question...I would suggest contacting tech support on this one since this forum may not have a lot of people who deal with this issue mainly because it's English based.

New Contributor
Posts: 2

Re: Printing Chinese characters using ODS EXCEL

Thank you, I will try tech support.
Super User
Posts: 9,867

Re: Printing Chinese characters using ODS EXCEL

I think you would not get any problem, if your sas encoding is 'utf-8'  or  'euc-cn' .
' .

Ask a Question
Discussion stats
  • 3 replies
  • 210 views
  • 2 likes
  • 3 in conversation