BookmarkSubscribeRSS Feed
appeln
Calcite | Level 5

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,
  

   

3 REPLIES 3
Reeza
Super User

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.

appeln
Calcite | Level 5
Thank you, I will try tech support.
Ksharp
Super User

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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1556 views
  • 2 likes
  • 3 in conversation