BookmarkSubscribeRSS Feed
ArcheeSh
Calcite | Level 5

Hi everybody! I'm using EG 6.1

I have the following problem with csv import: In CSV file some columns contain russian text. When I choose english language in EG properties, the import process is OK but the output looks like in the picture:problem.PNG

When I choose russian language in EG properties, the import is not processed and i get the following error:

problem1.PNG

How can I get the correct data? I've tried lots of ways that I've found in google and on this Forum but nothing was helpful(

Thanks in advance!!!

2 REPLIES 2
ChrisHemedinger
Community Manager

You're get this error when the text in the file contains characters that cannot be mapped to the SAS session encoding.  Your SAS session might be running in wlatin or latin1 -- or some other encoding that cannot handle the mix of characters.

 

The best approach is to run SAS with ENCODING of UTF8.  To do that, the SAS command would need to change to reference the ../nls/u8/sasv9.cfg file as the configuration.  In a centralized SAS environment, you'll have to coordinate that with a SAS administrator and potentially any colleagues who use the same SAS environment.  But if national characters are a common requirement, that's the proper thing to do.

 

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
Ksharp
Super User
Another way is changing encoding of CSV file before importing it :


filename x 'c:\temp\x.csv' encoding='utf-8';
proc import ..............



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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 2 replies
  • 5308 views
  • 0 likes
  • 3 in conversation