Skip to content

Fix UnicodeDecodeError when loading know-how docs on Windows#286

Open
aevo98765 wants to merge 1 commit intosnap-stanford:mainfrom
aevo98765:fix/windows-utf8-encoding-knowhow
Open

Fix UnicodeDecodeError when loading know-how docs on Windows#286
aevo98765 wants to merge 1 commit intosnap-stanford:mainfrom
aevo98765:fix/windows-utf8-encoding-knowhow

Conversation

@aevo98765
Copy link

On Windows, open() defaults to cp1252 encoding which fails to decode UTF-8 characters in the know-how markdown files. Explicitly specifying encoding="utf-8" fixes the crash for Windows users.

On Windows, open() defaults to cp1252 encoding which fails to decode
UTF-8 characters in the know-how markdown files. Explicitly specifying
encoding="utf-8" fixes the crash for Windows users.
@aevo98765 aevo98765 force-pushed the fix/windows-utf8-encoding-knowhow branch from 9641551 to 36739a2 Compare March 2, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant