We provide EncodingWarning since Python 3.10. Pylint also provide warning too.
Some Python users including me start fixing them. How we fix them can be used to estimate how changing the default encoding will fix or break existing code.
If we fix it by adding encoding="utf-8"
, changing the default encoding also fix the (potential) bugs.
If we fix it by adding encoding="locale"
or encoding=locale.getpreferredencoding(False)
, changing the default encoding will break such code.
I will gather that information. If you interesting it, this is incomplete list: