DATA Step, Macro, Functions and more

Read french accents in Excel using utf-8 encoding

Reply
New Contributor
Posts: 3

Read french accents in Excel using utf-8 encoding

Hello

 

When I try to import an Excel file with French accents I'm always getting the following: D�c�s result as output. This problem is caused on a linux server with UTF-8 encoding. I'm using SAS 9.4.

 

proc import datafile=temp
out=work.test
dbms=xls replace ;
sheet="sheetname";
getnames=yes ;
run;       

Can someone help me?

Thank you in advance.

PROC Star
Posts: 2,230

Re: Read french accents in Excel using utf-8 encoding

Show us the FILENAME statement. 

Did you try using the ENCODING= option in the FILENAME statement?

Show us the result of 
proc options group=languagecontrol; run;

New Contributor
Posts: 3

Re: Read french accents in Excel using utf-8 encoding

Issue found: we currently use utf-8 single byte which doesn't allow us to use special characters. In order to display the special charters we have to use double byte utf-8.

 

Thank you for your response.

Frequent Contributor
Posts: 109

Re: Read french accents in Excel using utf-8 encoding

We had this issue of not resolving Swedish Special Characters while reading it from a Oracle Database.

We changed the value of nsl_lang parameter in windows and it worked like a charm.

Ask a Question
Discussion stats
  • 3 replies
  • 167 views
  • 0 likes
  • 3 in conversation