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 ?

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

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