[GH-ISSUE #8] Usage of special unicode characters causes crashes in terminals which do not support them #5

Open
opened 2026-10-31 22:06:52 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @mcmerdith on GitHub (Aug 10, 2025).
Original GitHub issue: https://github.com/Comfy-Org/cookiecutter-comfy-extension/issues/8

As the title states, the usage of special unicode characters will cause a crash for terminals which do not support them (for example git bash on windows)

github.com/Comfy-Org/cookiecutter-comfy-extension@77a66d0d45/hooks/pre_gen_project.py (L56)

UnicodeEncodeError: 'charmap' codec can't encode character '\u2713' in position 0: character maps to <undefined>
2025-08-10 14:03:46 - cookiecutter.hooks - ERROR - Stopping generation because pre_gen_project hook script didn't exit successfully
Error creating project: Hook script failed (exit status: 1)
Originally created by @mcmerdith on GitHub (Aug 10, 2025). Original GitHub issue: https://github.com/Comfy-Org/cookiecutter-comfy-extension/issues/8 As the title states, the usage of special unicode characters will cause a crash for terminals which do not support them (for example git bash on windows) https://github.com/Comfy-Org/cookiecutter-comfy-extension/blob/77a66d0d454f6611a1714075939ab9b0635d5227/hooks/pre_gen_project.py#L56 ``` UnicodeEncodeError: 'charmap' codec can't encode character '\u2713' in position 0: character maps to <undefined> 2025-08-10 14:03:46 - cookiecutter.hooks - ERROR - Stopping generation because pre_gen_project hook script didn't exit successfully Error creating project: Hook script failed (exit status: 1) ```
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/cookiecutter-comfy-extension#5
No description provided.