Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have been trying for days to insert data such smileys, data from all languages into mysql through talend.
The source is sql server and target mysql.
If I use the 'Set Names utf8mb4' in mysql and run my insert statements, the data is successfully inserted. (Ex - ハウス, is inserted correctly)
However, if I set the 'Set Names utf8mb4' in additional parameters, it just does not work (ハウス is inserted as ???)
As of now, its tmssqlinput - tmysqlbulkoutputexec
Any idea on how to solve this?
Hi.
I am not sure if I am correct, but By default in Talend is used UTF-8 not UTF-8MB4. I think. you need to convert the text to UTF8MB4.
See e.g. this thread:
https://community.talend.com/t5/Design-and-Development/Encoding-UTF-8-and-ISO-8859/td-p/23158
Hope it helps.
Regards
Lojdr
"set names utf8mb4" is related to the connection so in Additional JDBC Parameters as character_set_connection.
Character set for table definition or at least for the specific column.
Have you converted the string you are sending to the database to the URF8MB4 encoding?
I'm using tmssqlinput. How do I convert the string here to utf8mb4. In the additional parameters of tmssqlinput I have included character encoding = utf8mb4
And, also in tmysqlputput I have included in the additional parameters set names utf8mb4
But, these don't work when the incoming string has a emoji
I gave you a link to an example how to convert strings from one encoding to another in Talend in my first post. Sorry, I can't help you more.