2 ms·
Their checklist is missing one item; look for mojibake and figure out how to re-encode it in UTF-8. I had to do this recently, and wow it was hard to figure out
by pabs3 4y ago
Their checklist is missing one item; look for mojibake and figure out how to re-encode it in UTF-8. I had to do this recently, and wow it was hard to figure out the right characters! I think I ended up Googling for the string and using that.
- mook 4y agoI've had good luck years ago just duplicating the string a few times and throwing it at Mozilla's character set detection stuff (there's a "chardet" python library implementing that, IIRC). My context was song metadata (title, artist, etc.) so your mileage might vary.