I have a string like this ("Theres loads of adventures to be had here;\nYou'll get your own Kobémon\nand get to catch more!") in my .JSON file and when I read from it into the python file and into a Tkinter textbox I get "é" instead of é. Is there a way to stop this. Im reading the .JSON using this :(self.Lines = json.load(open("Data/Lines.json")))
Try This:
(self.Lines = json.load(open("Data/Lines.json","rb"), encoding="utf-8"))
The difference is loading the file in bytes and reading it in utf-8 format (assuming that's the file format).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With