You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a source file uses both the UTF-8 BOM mark signature and a magic encoding comment, the only allowed encoding for the comment is ‘utf-8’. Any other encoding will cause an error.
But jython doesn't report an error. It defaults the encoding to utf-8 and run it successfully.
Assuming this file has BOM header.
# coding: iso-8859-15print("你好")
Jython will run it successfully while CPython will report an error.
The text was updated successfully, but these errors were encountered:
According to PEP263.
But jython doesn't report an error. It defaults the encoding to utf-8 and run it successfully.
Assuming this file has BOM header.
Jython will run it successfully while CPython will report an error.
The text was updated successfully, but these errors were encountered: