BookmarkSubscribeRSS Feed
alepage
Barite | Level 11

Hello,

 

I am trying to read a csv file which contains strange characters like below:

Pas encore inscrit mais j'espère si tôt.

 

j'espère should be j'espère

si tôt. should be si tôt.

 

Is there a way to change that when the file is unzip (see the Unix command below)

x %sysfunc(quote(unzip -jo /.../report.zip -d /.../report)));

 

Is it possible to use an encoding option while reading the  decompressed file or does the tranwrd function is the only option? 

 

2 REPLIES 2
SASKiwi
PROC Star

How was the CSV created in the first place? Is "Pas encore inscrit mais j'espère si tôt" exactly what you see in the CSV if you open it in a text editor that doesn't change the contents? Try opening it with Notepad++ which report on the file encoding and can do encoding conversions.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 792 views
  • 1 like
  • 3 in conversation