atom-community / atom-community/atom-script

win_unicode_console module is not working in script on windows 10

Open
#1,754 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
730
Forks
264
PR merge metrics
No merged PRs in 30d

Description

print("\U0001f600") will display an emoji on powershell console but not when execute by script

Traceback (most recent call last):
File "C:\Users\Paul\python_bootcamp\loop_ex1.py", line 8, in
print("\U0001f600")
File "C:\Program Files (x86)\Python37-32\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 '\U0001f600' in position 0: character maps to

in Powershell
😀

I have restart Atom before testing
Regards
PauloLaScience

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.