BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
dennis_oz
Quartz | Level 8

Hi please can anybody suggest how to remove this unwanted character .

 

Thanks .

 

 

dennis_oz_0-1626250318414.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
ErikLund_Jensen
Rhodochrosite | Level 12

Hi @dennis_oz 

 

Try translate('-','96'x)

View solution in original post

6 REPLIES 6
dennis_oz
Quartz | Level 8

 

dennis_oz_0-1626252426398.png

 

Hi please see the attached data .

 

there is a UTF-8  code  i.e x96 . tis needs to be replaced with  "-" 

 

so o/p should be  "Idameneo - Robina"

ErikLund_Jensen
Rhodochrosite | Level 12

Hi @dennis_oz 

 

Try translate('-','96'x)

dennis_oz
Quartz | Level 8
Thank you sooo much !!!
andreas_lds
Jade | Level 19

Looks like an encoding problem, three options to solve it:

  1. change the encoding of you sas session
  2. at the encoding-option to the infile-statement when reading the file
  3. change the encoding of the file before it is read

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
  • 6 replies
  • 2455 views
  • 4 likes
  • 4 in conversation