-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Open
Labels
bugunicodeBugs and enhancements related to Unicode/UTF-8 support.Bugs and enhancements related to Unicode/UTF-8 support.
Description
Port, board and/or hardware
Raspberry Pico; Linux PC
MicroPython version
MicroPython v1.25.0 on 2025-04-15; Raspberry Pi Pico W with RP2040
MicroPython v1.22.1+ds-1build2 on 2024-04-01; linux [GCC 13.2.0]
Reproduction
Run this code in REPL or separately:
print(len('°'.center(4)))
Expected behaviour
Expected to output 4
Observed behaviour
Outputs 3
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree
Metadata
Metadata
Assignees
Labels
bugunicodeBugs and enhancements related to Unicode/UTF-8 support.Bugs and enhancements related to Unicode/UTF-8 support.