2019-11-22, 18:20
I'm just throwing this out in case it is a known issue; don't know that it's worth spending time investigating. I was working on an error in a python 3 script that happens when a music library query result is converted to JSON but isn't correctly encoded in utf-8. From what I gather, it seems like the problem is that there is string data in the library that is implicitly encoded in an 8 bit encoding such as 1251 and not converted to utf-8 prior to insertion into the db. So there are illegal byte strings with values 128-255 that are being passed into the JSON response. When the system tries to decode this the resulting stream is invalid UTF-8.
So I guess my question is, are the db routines supposed to enforce utf-8 encoding on text during an update?
edit: doing some more digging, the error I get is on a byte 0x81 which I don't know what that is supposed to encode.
scott s.
.
So I guess my question is, are the db routines supposed to enforce utf-8 encoding on text during an update?
edit: doing some more digging, the error I get is on a byte 0x81 which I don't know what that is supposed to encode.
scott s.
.