Skip to content

UnicodeEncodeError template_path.write_text(TEMPLATE_FILE) #91

@yaseralnajjar

Description

@yaseralnajjar
 File "C:\Users\kasse\Desktop\test-django-unicorn\venv\lib\site-packages\django\core\management\base.py", line 330, in run_from_argv self.execute(*args, **cmd_options) File "C:\Users\kasse\Desktop\test-django-unicorn\venv\lib\site-packages\django\core\management\base.py", line 371, in execute output = self.handle(*args, **options) File "C:\Users\kasse\Desktop\test-django-unicorn\venv\lib\site-packages\django_unicorn\management\commands\startunicorn.py", line 59, in handle template_path.write_text(TEMPLATE_FILE) File "C:\Users\kasse\AppData\Local\Programs\Python\Python37\lib\pathlib.py", line 1219, in write_text return f.write(data) File "C:\Users\kasse\AppData\Local\Programs\Python\Python37\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f984' in position 20: character maps to <undefined> 

The issue is related to utf-8 on Windows when running the command python manage.py startunicorn hello-world

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions