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
@ccordoba12@dalthviz I have a similar issue opening UTF-8 encoded .md files (no BOM), that are detected as MACROMAN. Can you give me a hint of where the autodetecting code is, so I try to fix this?
Description
What steps will reproduce the problem?
Spyder 5.3.0 on MS Windows 10. Open a UTF-8 encoded source file (without -*- coding: utf-8 -*- encoding declaration).
Spyder DOES NOT RESPECT PEP3120: the file will be opened with Windows-1250 encoding. (It may/may not depends on BOM.) This is a bug.
The proper way (for Python 3, see PEP3120) is to open each file (by default) as UTF-8 encoding.
Obviously one can enforce UTF-8 encoding (see PEP263). It is a workaround.
BTW, PyCharm and MS Visual Code, the same PC/OS, behave as expected: open .py files with UTF-8 as default encodings.
Versions
Dependencies
The text was updated successfully, but these errors were encountered: