I have a few files (for testing purposes) that explicitly list the encoding (so that view/editing works sanely), and one of them happens to be cp1252. Which means codespell check results in output like: ``` WARNING: Cannot decode file using encoding "utf-8": .\README.md WARNING: Trying next encoding "iso-8859-1" ``` It also means that correctly declared iso-8859-1 files get treated as utf-8 on the first attempt to determine encoding. It would be really neat if coding could be supported :-) E.g. handle files like: ``` ... possible lines at head... possibly not.... # -*- coding: cp-1252 -*- .... ```
Activity
clach04 commentedon Jun 14, 2026
Posted #3957 for discussion
clach04 commentedon Jun 14, 2026
BTW thanks for this tool, it has been on my TODO list to check out for the longest time and I finally made time today. It's pretty neat :-)