Skip to content

fix: replace Unicode separator character for Windows compatibility#129

Merged
bensig merged 1 commit intoMemPalace:mainfrom
minimexat:fix/windows-unicode-encoding
Apr 7, 2026
Merged

fix: replace Unicode separator character for Windows compatibility#129
bensig merged 1 commit intoMemPalace:mainfrom
minimexat:fix/windows-unicode-encoding

Conversation

@minimexat
Copy link
Copy Markdown

What

Replace (U+2500) with - in convo_miner.py.

The Problem

UnicodeEncodeError: 'charmap' codec can't encode character '\u2500' in position 0: character maps to <undefined>

Windows terminals using cp1252 (the default Windows encoding) crash on every --mode convos run when printing the separator unless PYTHONUTF8=1 is set explicitly — which most users won't know to do.

Fix

Replace with - which is ASCII and works on all platforms without any environment variable workaround.

…ility

Replace the ─ (U+2500) separator character with - in convo_miner.py.
Windows terminals using cp1252 encoding raise UnicodeEncodeError when
printing this character unless PYTHONUTF8=1 is set explicitly.

Fixes crash on Windows: UnicodeEncodeError: 'charmap' codec can't encode
character '\u2500'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants