This is because serviceURLutf8 does not deliver. It utf-8does not convert to utf8, but simply says to interpret the answer as utf8.
You have to use
rp({uri: serviceURL, encoding: 'latin1'})
to read the answer correctly and then convert it to utf8 if you need to.
source
share