Skip to content

fix: add UTF-8 encoding to file writes in edgeflowc.py#34

Merged
MadhurKumar004 merged 1 commit intopointblank-club:mainfrom
me-jain-anurag:fix/unicode-encoding-windows
Feb 7, 2026
Merged

fix: add UTF-8 encoding to file writes in edgeflowc.py#34
MadhurKumar004 merged 1 commit intopointblank-club:mainfrom
me-jain-anurag:fix/unicode-encoding-windows

Conversation

@me-jain-anurag
Copy link
Contributor

Fixes UnicodeEncodeError on Windows when writing C++ code containing the μ (mu) character for microseconds. The μ character is generated in code_generator.py (line 714) for timing output and written by edgeflowc.py.

Error:

UnicodeEncodeError: 'charmap' codec can't encode character '\u03bc' in position 4004

Added encoding='utf-8' to all file.open() calls in code generation section (lines 837, 839, 841, 843, 845, 930).

Fixes the error:
UnicodeEncodeError: 'charmap' codec can't encode character '\u03bc'

Fixes UnicodeEncodeError on Windows when writing C++ code containing
the μ (mu) character for microseconds. The μ character is generated in
code_generator.py (line 714) for timing output and written by edgeflowc.py.

Added encoding='utf-8' to all file.open() calls in code generation
section (lines 837, 839, 841, 843, 845, 930).

Fixes the error:
UnicodeEncodeError: 'charmap' codec can't encode character '\u03bc'
@MadhurKumar004
Copy link
Collaborator

Lgtm, thanks

@MadhurKumar004 MadhurKumar004 merged commit eff5968 into pointblank-club:main Feb 7, 2026
1 check 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