avats-dev / motivate

:zap: motivate :zap: - A simple script to print random motivational quotes. Highly influenced by linux command fortune.
MIT License
24 stars 107 forks source link

Problem with utf-8 file encoding #151

Open denis-znanec opened 3 years ago

denis-znanec commented 3 years ago

Describe the bug While runing find_dupes.py encounterd error with file reading. Charmap codec can't decodes some characters.

To Reproduce Steps to reproduce the behavior:

  1. Go to motivate/motivate/find:dupes.pc
  2. Run it
  3. See error: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 2890: character maps to

Expected behavior Read character.

Desktop (please complete the following information):

Additional context Tried on multiple machines, same resault

Possible Solution Add utf-8 support

vmdhhh commented 3 years ago

Is this bug resolved or still needs some work?

denis-znanec commented 3 years ago

Is this bug resolved or still needs some work? Resolved, already send pr request.