← index #2789Issue #10766
Off-topic · high · value 0.548
QUERY · ISSUE

Interactive REPL does not support unicode/utf8

openby peterhinchopened 2017-01-13updated 2025-08-26
enhancementunicode

Copy the following and paste it at the REPL:

z = 'ÇØĚ'

In paste mode it works, but not at the REPL prompt where the string contents disappears.

CANDIDATE · ISSUE

REPL parse error of valid bytes data.

closedby antirezopened 2023-02-16updated 2023-02-16
bug

To reproduce, just paste the following in the REPL:

b'\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\x5cx5a\xaa'

The result will be a syntax error, even if the string is valid and can be parsed by Python3.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied