BookmarkSubscribeRSS Feed
SasStatistics
Pyrite | Level 9

Looking at some old files, the text (comments) appear very weird, I do not know why this happend or if it is possible to "get back" the original text? 

Example on how it looks like: 

 

SasStatistics_2-1625047468553.png

 

The letters involved are of the form: Å, Ä, Ö  (Swedish). 


4 REPLIES 4
andreas_lds
Jade | Level 19

Could be an encoding problem. So:

  • Which tool created the files?
  • Which tool is used right now?

I had a similar problem: code file created by SAS EG using "unicode" when saving the program. When i opened the file with SAS Studio (set to utf-8) everything was ok, but after saving EG doesn't recognise the encoding properly. Reason: SAS Studio removes the bom (byte order mark) that EG relies on.

SasStatistics
Pyrite | Level 9
To my knowledge it is manually typed in SAS EG. SAS EG is used right now aswell.

Any possible repairs?
andreas_lds
Jade | Level 19

If the file has been corrupted, that the only way to repair it is replacing the "bad" chars manually. Maybe SAS-Tech-Support has an idea, i would contact them .

ballardw
Super User

What FONT is your Editor currently using?

Character values, if ASCII, do not have standard appearance for numeric values above 126 between fonts designed by different folks.

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 4 replies
  • 918 views
  • 2 likes
  • 3 in conversation