Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode prompt problem running on Windows #172

Open
fastrocket opened this issue Aug 17, 2022 · 0 comments
Open

Unicode prompt problem running on Windows #172

fastrocket opened this issue Aug 17, 2022 · 0 comments

Comments

@fastrocket
Copy link

fastrocket commented Aug 17, 2022

I don't have this problem on Colab, but when I run DiscoArt on my Windows 11 PC, I get this error when I add in names of artists with non-English characters like zdzisław beksiński (the L and N with accent marks) to the prompts:

`UnicodeEncodeError

'charmap' codec can't encode character '\u0142' in position 29: character maps to <undefined>
*** You may need to add PYTHONIOENCODING=utf-8 to your environment ***

I've tried setting these environment variables and they don't fix it:

import os

os.environ['PYTHONIOENCODING']='utf-8'
os.environ['PYTHONUTF8']='1'
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

No branches or pull requests

1 participant