DATA Step, Macro, Functions and more

Unable to insert rows with special characters to MySQL table

Reply
New Contributor
Posts: 2

Unable to insert rows with special characters to MySQL table

I'm unable to insert rows containing special charachters like "à","ö", etc. into a MySQL table.

 

Example code:

proc sql;

insert into s_dmp.airline (airline_nm) values ('testö');

quit;

 

ERROR:

CLI execute error: [MySQL][ODBC 5.3(w) Driver][mysqld-5.7.18-log]Incorrect string value: '\xF6' for column 'airline_nm' at row 1

 

Any ideas on how to solve above error without translating the string variable?

 

 

 

 

 

Super User
Posts: 7,866

Re: Unable to insert rows with special characters to MySQL table

Posted in reply to glenndemunck

Make sure that all your environments are either UTF-enabled or use wlatin character sets.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 1 reply
  • 81 views
  • 0 likes
  • 2 in conversation