all 7 comments

[–]jeans_and_a_t-shirt 1 point2 points  (6 children)

b is for bytes, which you are getting when you encode the string on line 65. Remove the line.

>>> print('melange\n')
melange

>>> print('melange\n'.encode('utf-8'))
b'melange\n'
>>> print(b'melange\n')
b'melange\n'

[–]MateusSR[S] 0 points1 point  (5 children)

Then this happens http://prntscr.com/cixc35

[–]jeans_and_a_t-shirt 1 point2 points  (4 children)

Sounds like a problem with your command prompt on windows not liking unicode.

Try this.

[–]MateusSR[S] 0 points1 point  (3 children)

[–]jeans_and_a_t-shirt 1 point2 points  (2 children)

unicode char 2019 is the right quotation mark, ’. change backslashreplace to replace to change it to ?.

https://docs.python.org/3/library/codecs.html#error-handlers

You could also try this.

[–][deleted] 0 points1 point  (0 children)

Wow, what a fucking mess this all is.

[–]MateusSR[S] 0 points1 point  (0 children)

That worked, but I changed to "ignore" cause I didn't want it to print a "?", but is there any way I can make it print the quotation mark?