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

Does SAS Universal Viewer renders Japanese/Chinese chars properly when viewed as the chars are displayed not properly when viewed in any version of viewer. 

1 ACCEPTED SOLUTION

Accepted Solutions
japelin
Rhodochrosite | Level 12

Why do you specify any for encoding= dataset option?

ANY specifies that no transcoding occurs, so I think this is what is preventing it from displaying correctly.

Try to submit the following code.

 

data "&output_path" (compress=yes);
  set work.&dataset_name;
run;

 

 

 

View solution in original post

6 REPLIES 6
japelin
Rhodochrosite | Level 12

When I had used Japanese dataset and universal viewer, it displayed properly.

What is the encoding of the dataset you are trying to display?
What is the version of the Universal Viewer that is not displaying properly?

AmitSingh2
Calcite | Level 5

Its 1.4 version and UTF-8 encoded dataset. Please share steps or details for which is working for you. 

japelin
Rhodochrosite | Level 12

I tried with Windows + SAS 9.4 TS1M7 + SAS Universal Viewer 1.5.
Without doing anything, I was able to display the Unicode dataset Japanese and Chinese.

Can SAS unicode support, not SAS Universal Viewer, display the dataset you are dealing with properly and without garbling?

 

2021-08-31_10h02_12.png

2021-08-31_10h07_41.png

AmitSingh2
Calcite | Level 5
Thanks for the snapshot and detailed info. Yes we are using the same 9.4 & 1.5 as well.
Yes its visible in SAS tools but not in viewer.
We are generating datasets using this procs from json . Do you think that may be issue if its different from yours :-

proc datasets;
append base=work.&dataset_name data=jsondata force;
run;

data "&output_path" (encoding=any compress=binary);
set work.&dataset_name;
run;
japelin
Rhodochrosite | Level 12

Why do you specify any for encoding= dataset option?

ANY specifies that no transcoding occurs, so I think this is what is preventing it from displaying correctly.

Try to submit the following code.

 

data "&output_path" (compress=yes);
  set work.&dataset_name;
run;

 

 

 

AmitSingh2
Calcite | Level 5
Thanks (compress=yes) working fine for viewer to render UTF-8 chars properly.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 6 replies
  • 1766 views
  • 1 like
  • 2 in conversation