diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 74bdb19d439..7187fe448ab 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -223,6 +223,8 @@ get_locale_encoding(void) return NULL; } return get_codec_name(codeset); +#elif defined(__ANDROID__) + return get_codec_name("UTF-8"); #else PyErr_SetNone(PyExc_NotImplementedError); return NULL;