BookmarkSubscribeRSS Feed
pabloh2000
Calcite | Level 5

Hi, I'm loading data from MySQL (utf-8), then making some transformations in DI 4.9 and after that I'm trying to insert the result in Postgres (utf-8).

The problem is with some spanish characters (á, ñ, Ñ, etc.). If I try to insert directly, it shows an error. So I'm using this: putc(char_field, "$UTF8XE250.").

This function solves the error, but some characters are not properly managed: for example, I can't see the "Ñ" character in Postgres table (it shows some weird stuff).

 

So, what should I do? Maybe some other mask with putc()? Maybe trying to keep all "internal" tables working with utf-8 (since source and destination uses that encoding)?

 

Please help!

 

Regards

2 REPLIES 2
Tom
Super User Tom
Super User
What session encoding is the SAS session that is running DI using? You probably need to be using UTF-8.
pabloh2000
Calcite | Level 5
How can I check that from Data Integration IDE?

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 25. 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
  • 2 replies
  • 586 views
  • 1 like
  • 2 in conversation