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!

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