0

Create Ad · Page · Group · Event · Fundraiser

Aleksandr
  • 1,776
  • 10
  • 19

2 Answers2

0

You have "Mojibake". Example: ž turned into ž because latin1 was involved somewhere. You have not provided enough info for me to point specifically at what to fix, but this Question and Answer should help. (Search for Mojibake.)

Community
  • 1
  • 1
Rick James
  • 122,779
  • 10
  • 116
  • 195
  • The desired result would be a vector of vnt = c("Individualioji įmonė", "Akcinė Bendrovė", "Mažoji bendrija") with latin letters. I have no problem with encoding in R, but when i send it to mysql it fails to pick a correct encoding. – Aleksandr Mar 16 '17 at 07:28
0

Solved. The solution is so simple. Right before writing data to mysql you need to overwrite dbConnect object:

conn = dbConnect(MySQL(), user='', password='', dbname='', host='127.0.0.1')
Aleksandr
  • 1,776
  • 10
  • 19