alpertunga-bile / prompt-generator-comfyui

Custom AI prompt generator node for the ComfyUI
MIT License
85 stars 8 forks source link

[BUG] UTF-8 not handled correctly #7

Closed klement closed 9 months ago

klement commented 9 months ago

Hi!

an issue I noticed. If the input text for prompt-generator contains accented characters, for example:

ă

then prompt generator errors with an exception:

Error occurred when executing Prompt Generator: 'charmap' codec can't encode character '\u0159' in position 161: character maps to

Thanks!

alpertunga-bile commented 9 months ago

Hello, thanks for reporting. With new commit I added encodings for ascii and utf-8. Checked the update with the character that you provided and it seems working now. If you encounter any problems let me know.

klement commented 9 months ago

Issue seems to be gone. Thank you!