BookmarkSubscribeRSS Feed
Prem_Ezekiel
Calcite | Level 5

Data extracted from Teradata using SAS which contains Thailand traditional characters for customer name and displayed as ??.

But when the same data is pulled directly using TD SQL Assistant. I am getting Thailand characters, where I changed the font to UTF8.
How do I fix this issue of Thailand character display in SAS. I tried using encoding=utf8, but thats not working.

Please help me on this.

 

Thanks

4 REPLIES 4
RahulG
Barite | Level 11

I am not sure of my answer. Try it yourself. Apply the below option, see if it works.

 

option LOCALE=th_TH;

 

 

 

Prem_Ezekiel
Calcite | Level 5

I tried with locale=th_TH option. But it is not working.

 

Thanks.

 

TeraGrapher
Fluorite | Level 6

Try:

 

encoding=utf-8

Ksharp
Super User
That is because the encoding of Teradata is different with your SAS encoding.

modify the file sasenv_local (is under the fold of SAS) , add the correct(Teradata) encoding in it .

and restart SAS .

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1270 views
  • 0 likes
  • 4 in conversation