What is the best way to write Polish characters to MySQL using R?
I tried to send an R data.frame to my local MySQL database. The data.frame includes Polish characters like ł.
mydb = dbConnect(MySQL(), user='root', password='1234', dbname='semstorm1', host='localhost')
dbWriteTable(mydb,"dane3", dane2, append = T, row.names = F)
I get the error
could not run statement: Invalid utf8mb4 character string
EDIT
When I use insert in mysql it works fine ( code example bellow)
INSERT INTO test1 VALUES ("AAAAŁłśśś")
When I insert data via R dbsendQuery (code bellow) dbSendQuery(mydb, "insert into test1 VALUES ('asdllllłłśżżż')") this gives me asdllll³³œ¿¿¿
When I dbWriteTable(mydb,"dane3", dane2, append = T, row.names = F)
this gives me error could not run statement: Invalid utf8mb4 character string: 'praca bia'