cslarsen / wpm

Typeracer-like console app for measuring your WPM
GNU Affero General Public License v3.0
323 stars 48 forks source link

utf-8 not working on custom json file #63

Closed decrecementofeliz closed 1 year ago

decrecementofeliz commented 4 years ago

Hi, I'm trying to load a json file with my custom quotes, but I get this error Could not read JSON file: 'utf8' codec can't decode byte 0xe1 in position 59: invalid continuation byte I've tried different export and encoding options when creating the file, but I can't make it work keeping characters like ñ or Á, etc

Example of my quotes:

[
  {
    "author": "Refraneiro Galego",
    "title": "Refrán",
    "text": "Inda o demo ten cara de coello!",
  },
  {
    "author": "Refraneiro Galego",
    "title": "Refrán",
    "text": "Máis vale pillo que pillado!",
  }
]

Can you help me?

Also, it would be great if people could add quotes collections to this repository and that they could be selected from the app (like 'Movie quotes' or 'Philsophy quotes' or in this case 'Galicians proverbs')

Thanks!