BookmarkSubscribeRSS Feed
Fluorite | Level 6

Hi All,


I have run a macro and I get this error...'Failed to transcode data from U_UTF8_CE to U_LATIN9_CE' I am running Enterprise Guide 7.4.

What I found strange is I run the same code last week and didn't get any error.


Your help would be much appreciated.


Thank You

Super User

Language encoding is data content. If you have a new or updated data source that would be the most likely source of this error.

Super User
Or you can change your sas session's encoding into UTF-8 and run code again.

Fluorite | Level 6

Thank you all for your response...So how can  change sas session's encoding into UTF-8?


Kind Regards

Super User
First find out the SAS root directory:

%let path=%sysfunc(pathname(SASROOT));

%put &path ;

Then open  SASV9.CFG  under SAS root directory, change the following:

-CONFIG "C:\Program Files\SAS\SASFoundation\9.4\nls\zh\SASV9.CFG"


-CONFIG "C:\Program Files\SAS\SASFoundation\9.4\nls\u8\SASV9.CFG"

SAS Employee

If you change your SAS session encoding to UTF-8, SAS should be able to support the characters. However, some SAS string functions may ned to be changed to the K function equivalent. Many of the string functions, such as INDEX, SUBSTR, and LENGTH, are byte-oriented. The National Lanugage Support Reference Guide has a table documentin the I18N compatibility of each SAS function that handles character data.


It would be best to know what actually caused the transcoding error to occur. Do you have any output you can share?


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
  • 5 replies
  • 1 like
  • 4 in conversation