diff --git a/CHANGELOG.md b/CHANGELOG.md index c2d8e3154..9c69b29fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ ## [Unreleased] ### Changed - +- Enabled UTF-8 support for `str` objects. - The method `DriveBase.angle()` now returns a float ([support#1844]). This makes it properly equivalent to `hub.imu.heading`. diff --git a/bricks/_common/mpconfigport.h b/bricks/_common/mpconfigport.h index f4745042c..81d70c432 100644 --- a/bricks/_common/mpconfigport.h +++ b/bricks/_common/mpconfigport.h @@ -80,6 +80,7 @@ #define MICROPY_PY_BUILTINS_SLICE (PYBRICKS_OPT_EXTRA_MOD) #define MICROPY_PY_BUILTINS_PROPERTY (0) #define MICROPY_PY_BUILTINS_MIN_MAX (1) +#define MICROPY_PY_BUILTINS_STR_UNICODE (PYBRICKS_OPT_EXTRA_MOD) #define MICROPY_PY___FILE__ (0) #define MICROPY_PY_MICROPYTHON_MEM_INFO (1) #define MICROPY_PY_GC (PYBRICKS_OPT_EXTRA_MOD)