BookmarkSubscribeRSS Feed
jonasc
Calcite | Level 5

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.

3 REPLIES 3
ChrisNZ
Tourmaline | Level 20

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;

jonasc
Calcite | Level 5

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.

Satish_Parida
Lapis Lazuli | Level 10

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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 2287 views
  • 0 likes
  • 3 in conversation