Thank you for the info; the encoding is iso-8859-1.'\xb0' is degree sign in many 8bit encodings, such as iso-8859-1, iso-8859-15, and cp1252. You could specify any of those.
It would be better, though, to encode the file as UTF-8 so that it matches your default locale and you do not need to declare it.
How did you obtain the file? Just pasting from the blog post gives UTF-8 for me. I assume running locale will confirm that your system is set up for UTF-8?
I also copied and pasted from the site.
PS: I ran locale and got:
Code:
LANG=en_USLANGUAGE=en_USLC_CTYPE="en_US"LC_NUMERIC="en_US"LC_TIME="en_US"LC_COLLATE="en_US"LC_MONETARY="en_US"LC_MESSAGES="en_US"LC_PAPER="en_US"LC_NAME="en_US"LC_ADDRESS="en_US"LC_TELEPHONE="en_US"LC_MEASUREMENT="en_US"LC_IDENTIFICATION="en_US"LC_ALL=en_US
Statistics: Posted by 83zr5 — Tue Oct 01, 2024 11:31 pm