Hi, I'm new to SAS VIYA, and wanna help if anyone can.
In my working SAS VIYA environment, a PostgreSQL database is connected but the encoding method of that db is LATIN1. So, when I caslib that postgres db and load some data-set into cas server, any fields that contain the Chinese value will display the error codes. I know absolutely the reason is the utf-8 encoding environment of SAS VIYA have some conflict with the original LATIN1 of that PostgreSQL db. But for some reason, I cannot modify the encoding environment of PostgreSQL db into utf-8.
AS a solution may not be so good, I find a way to change the Chinese contents of the table in PostgreSQL db into hex, just like from "中" to "\xD6D0". And to my surprise, the contents of "\xD6D0" load into CAS server unchanged. Thus, my question here is how can I get the original "中" by coverting the "\xD6D0" in SAS VIYA. If it is likely to do so, the problem above might be solved.
Any help or suggestion are welcome! Thank you!
I don't understand. How did the Chinese characters get into the PostgreSQL database if it is using LATIN1 encoding?
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!
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: