Running a Python script through 'bash -c' in cmd get UnicodeEncodeError #6256
Replies: 3 comments 1 reply
-
This error is from userspace (ie Python). The
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the follow up. There isn't enough here for me to reproduce the problem locally. I am not familiar enough with Python to tell you with specificity what causes Python to output |
Beta Was this translation helpful? Give feedback.
-
Still have no idea to solve the problem. But finally I found aother way to print unicode string:
Maybe it is not elegant but it works. |
Beta Was this translation helpful? Give feedback.
-
Environment
Steps to reproduce
When I run a Python script through
bash -c
incmd
, Python throw UnicodeEncodeError. But in wsl it runs correctly.Expected behavior
Print Unicode character
Actual behavior
Python throw UnicodeEncodeError
Beta Was this translation helpful? Give feedback.
All reactions