djhtml icon indicating copy to clipboard operation
djhtml copied to clipboard

Charmap error without tracability

Open GitRon opened this issue 1 year ago • 1 comments

Hi @JaapJoris!

Without any changes, I now get this error:

DjHTML...................................................................Failed

  • hook id: djhtml
  • exit code: 123

Error: 'charmap' codec can't decode byte 0x8f in position 19315: character maps to 0 templates have been reindented. 227 templates were already perfect! 1 template could not be processed due to an error.

Is there any way I can see which template it doesn't like anymore? I have hundereds and git doesn't show me any changes. Didn't do an update, too.

Sorry that I can't provide more insight right now. 😔

Thx!
Ronny

GitRon avatar Mar 14 '24 07:03 GitRon

Ok, with divide-and-conquer I found the culprit!

I present: ⚠️

Hope this helps!

Supplemantal: Might be a Windows issue, UNIX colleage can lint this template.

GitRon avatar Mar 14 '24 07:03 GitRon

Yes, definitely a Windows issue. The README already contains this snippet to warn about this issue, added after the previous time it popped up:

Note that Windows still uses legacy code pages instead of UTF-8. It is highly advised to set the environment variable PYTHONUTF8 to 1 with the setx command:

C:\> setx /m PYTHONUTF8 1

JaapJoris avatar May 07 '24 13:05 JaapJoris

Awesome! Thx @JaapJoris!

GitRon avatar May 31 '24 07:05 GitRon