You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Native REPL cannot handle some unicode string properly
Steps to reproduce:
When you include korean letters in a string variables, most of letters throws UnicodeEncodeError: 'utf-8' codec can't encode error from the Python Native REPL. However, they works on the terminal
# Throws UnicodeEncodeError
a = "소문자"
b = "こんにちは"
# Doesn't throw error
c = "안녕하세요"
Diagnostic data
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Traceback (most recent call last):
File "c:\Users\ykim\.vscode\extensions\ms-python.python-2024.20.0-win32-x64\python_files\python_server.py", line 129, in exec_user_input
callable_ = exec_function(user_input)
File "c:\Users\ykim\.vscode\extensions\ms-python.python-2024.20.0-win32-x64\python_files\python_server.py", line 94, in exec_function
compile(user_input, "<stdin>", "eval")
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'utf-8' codec can't encode character '\udc90' in position 13: surrogates not allowed
The text was updated successfully, but these errors were encountered:
Behaviour
Native REPL cannot handle some unicode string properly
Steps to reproduce:
When you include korean letters in a string variables, most of letters throws
UnicodeEncodeError: 'utf-8' codec can't encode
error from the Python Native REPL. However, they works on the terminalDiagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)The text was updated successfully, but these errors were encountered: