[b]"Having issues with json .dump? How do you handle encoding errors?"[/b] or [b]"What's the best way to use json

18 Replies, 596 Views

Thanks for all the suggestions, everyone!

I tried the `ensure_ascii=False` + UTF-8 file opening combo, and it worked for most of my data. Still getting errors on a few strings, though.

Turns out some of them were encoded as Latin-1? Weird. Gonna try the `chardet` lib next.

Appreciate the help! This thread’s a goldmine. 😊

Messages In This Thread



Users browsing this thread: 1 Guest(s)