BookmarkSubscribeRSS Feed
iSAS
Quartz | Level 8

I'm getting a special character when creating a dataset from SQL server. Instead of a multi-lined description, it's having an output of "š" symbol.

 

How to translate this appropriately from the source? I can use the compress function but by using it I am removing that character instead of translating it properly.

 

Hoping you could help me guys.

 

Example Data from Source:

First Paragraph

Second Paragraph

 

Output:

First Paragraph š

Second Paragraph š

4 REPLIES 4
andreas_lds
Jade | Level 19

Could be a problem cause by mismatching encoding. Please verify that sas-session and database use the same encoding.

iSAS
Quartz | Level 8
Thank you for the response. How to check the encoding settings in SAS?
ChrisNZ
Tourmaline | Level 20
ChrisNZ
Tourmaline | Level 20

How to translate this appropriately from the source? I can use the compress function but by using it I am removing that character instead of translating it properly.

 

Maybe use translate function ?

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