micropython / micropython/micropython

Interactive REPL does not support unicode/utf8

Open
#2,789 6 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement unicode
Dominant language
C
Stars
22.1k
Forks
9k
Avg merge
6d 4h
Merged PRs (30d)
16

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue at the interactive REPL with the provided Python assignment, then compare its input handling with paste mode. Trace the REPL input path responsible for losing the Unicode string contents; done means the same input works at the prompt and the existing paste-mode behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, python
Domain
cli, embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.