BookmarkSubscribeRSS Feed
1902
Calcite | Level 5
Hi All,
Data extracted from Teradata using SAS which contains Chinese traditional characters for customer name and displayed as ??.

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

Experts, Assist me.

Thanks so much.
2 REPLIES 2
Patrick
Opal | Level 21
Hi

I believe that the ?? are in a way a good sign as it could mean at least that some double byte characters have been transmitted from Teradata to SAS and it's now eventually "only" about surfacing these characters.

There are a number of things which must be set correctly in order to make things work.
You find documentation under "SAS National Language Support (NLS)", http://support.sas.com/documentation/onlinedoc/nls/index.html.

I have only experience with some "single byte" languages and it can already be tricky there. We just should all speak US English only.... 😉

Good luck and let us know how you solved it. Eventually raise a track with SAS tech support if you get stuck and don't get a more concrete answer here.

HTH
Patrick
Ksharp
Super User

What OS do your sas setup ?

If OS is AIX or UNIX ,then you need to change the content of 'sasenv_local' file.

Especial to set environment variable 'NLS_Lang=American_American.zh16gbk'  or 'NLS_Lang=American_American.utf8'.

It is better that copy the context of profile file in Teradata into 'sasenv_local' file.

And Technology support is your best resource.

Ksharp

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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
  • 2 replies
  • 2806 views
  • 0 likes
  • 3 in conversation