Skip to content

tiny fix for windows: write PET log file as UTF-8 - #164

Merged
KriFos1 merged 1 commit into
Python-Ensemble-Toolbox:mainfrom
alex11818:eclipse-windows
Sep 14, 2026
Merged

KriFos1 merged 1 commit into
Python-Ensemble-Toolbox:mainfrom
alex11818:eclipse-windows

Conversation

@alex11818

Copy link
Copy Markdown
Contributor

FileHandler used the OS default encoding, which on Windows is a legacy codepage (cp1252) that cannot encode the box-drawing characters in the timestamps and tables. Every record raised UnicodeEncodeError inside the handler, so the log file was left empty while the run carried on.

No effect on Linux, where UTF-8 is already the default.

FileHandler used the OS default encoding, which on Windows is a legacy
codepage (cp1252) that cannot encode the box-drawing characters in the
timestamps and tables. Every record raised UnicodeEncodeError inside the
handler, so the log file was left empty while the run carried on.

No effect on Linux, where UTF-8 is already the default.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@KriFos1
KriFos1 merged commit ab0293c into Python-Ensemble-Toolbox:main Sep 14, 2026
3 checks passed
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