BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
xxformat_com
Barite | Level 11

Hi,

When using SAS OnDemand, the é character is automatically interpreted as 'C3A9'x i.e. requires 2 bytes.

 

sasondemand.JPG

When using the exact same code with SAS Studio from SAS Analytics, it is interpreted as 'E9'x from the extended ASCII table and therefore only requires one byte (which is what I would expect).

sasstudio.JPG

Do you know why SAS OnDemand goes for a 2-byte value ?

Cheers

1 ACCEPTED SOLUTION
4 REPLIES 4
xxformat_com
Barite | Level 11

Thanks @Kurt_Bremser 

 

I'm missing background encoding knowledge to understand what "as it is a start byte for a UTF sequence." means.

 

But on my local SAS Studio installation, I'm also using UTF-8. Did you mean this setting or something else?

sasstudio.JPG

xxformat_com
Barite | Level 11

After reading the you comment I've start reading the Wikipedia page and came up with more questions (I will create a distinct post for one of them).

 

Thanks for the code. I didn't thought about looking in the global options.

So also SAS Studio shows UTF-8, WLATIN1 is actually used.

Thanks!

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
  • 1525 views
  • 2 likes
  • 2 in conversation