invalid-unicode-codec / E2501#
Message emitted:
UTF-16 and UTF-32 aren't backward compatible. Use UTF-8 instead
Description:
For compatibility use UTF-8 instead of UTF-16/UTF-32. See also https://bugs.python.org/issue1503789 for a history of this issue. And https://softwareengineering.stackexchange.com/questions/102205/should-utf-16-be-considered-harmful for some possible problems when using UTF-16 for instance.
Correct code:
# This is a placeholder for correct code for this message.
Additional details:
You can help us make the doc better by contributing !
Created by the unicode_checker checker.