Sometimes in non-English locales the websearch script throws an UnicodeEncodeError exception because print("Found: " + text, links) can't render characters in a system encoding.
For example:
UnicodeEncodeError: 'charmap' codec can't encode character '\u2212' in position 1433: character maps to
This small fix sets encoding of print output to UTF-8, sort of resolving the issue.
Sometimes in non-English locales the websearch script throws an UnicodeEncodeError exception because print("Found: " + text, links) can't render characters in a system encoding.
For example: UnicodeEncodeError: 'charmap' codec can't encode character '\u2212' in position 1433: character maps to
This small fix sets encoding of print output to UTF-8, sort of resolving the issue.