I’m using KNIME under Chinese version of Windows. The operating system defaults character encoding to GBK instead of UTF-8, with no flawless system-wide reconfiguration of the character encoding. Under such circumstance, often I come across errors starting with “Error: invalid multibyte string” when reading data files in R scripting. I figured out the solution – appending Sys.setlocale(category = "LC_ALL", locale = "en_US.UTF-8")
as script header, just like appending # -*- coding: utf-8 -*-
ahead of everything in Python scripting. It is tedious, and I think there should be more poor guys like me who cannot figure out why and give up using R scripting in KNIME. Can KNIME do something to make our days?
Hey @Baytars,
It’s good to hear you found a solution to your problem. I think this would be great to post under ‘Feature Request’ for some visibility to the devs!
TL
1 Like