ATM we often don't specify the encoding in open calls. We should instead specify utf-8 everywhere because the default is platform dependent:
encoding is the name of the encoding used to decode or encode the file. This should only be used in text mode. The default encoding is platform dependent (whatever locale.getpreferredencoding() returns), but any text encoding supported by Python can be used. See the codecs module for the list of supported encodings.
That means all our open, pathlib.Path.read_text and related calls should specify encoding="utf-8".
ATM we often don't specify the encoding in
opencalls. We should instead specifyutf-8everywhere because the default is platform dependent:That means all our
open,pathlib.Path.read_textand related calls should specifyencoding="utf-8".