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

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 4 replies
  • 1178 views
  • 0 likes
  • 3 in conversation