UnicodeEncodeError: 'ascii' codec can't encode character u'\U0001f4bb' in position 0
See original GitHub issueThe trace isn’t necessarily helpful, but here it is:
Traceback (most recent call last):
File "/usr/local/bin/instapy", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/instapy_cli/__main__.py", line 11, in main
print(welcome_msg)
UnicodeEncodeError: 'ascii' codec can't encode character u'\U0001f4bb' in position 0: ordinal not in range(128)
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
UnicodeEncodeError: 'ascii' codec can't encode character u ...
The issue is that when you call str(), python uses the default character encoding to try and encode the bytes you gave it,...
Read more >'ascii' codec can't encode character in position | bobbyhadz
The Python "UnicodeEncodeError: 'ascii' codec can't encode character in position" occurs when we use the ascii codec to encode a string that contains ......
Read more >Fix Python UnicodeEncodeError: 'ascii' codec can't encode ...
The UnicodeEncodeError we reproduced earlier, is caused due to the fact that when str() method is called, the interpreter will use the default...
Read more >Python UnicodeEncodeError: 'ascii' codec can't encode ...
This error occurs when you pass a Unicode string containing non-English characters (Unicode characters beyond 128) to something that expects an ...
Read more >How To Fix Python Error - UnicodeEncodeError: 'ascii' codec ...
This is a very common error UnicodeEncodeError: 'ascii' codec can't encode character u'xa0' in position x.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think there should be a way to remove the welcome message, or at least the emoji from it. Not everyone has an emoji-capable terminal with bitmap support.
I found a solution good for all: remove emoji package and add (in the near future) some ascii art instead of emoji, so this will bring support to everyone on every platform and keep this package “fun” as it should be.
You could find a new version on pip. I close this issue, open a new one if there are other problems. 🥂