<div dir="ltr"><div class="gmail_quote">The problem is that U+1F427 (F0 9F 90 A7) in the source is being converted to \ud83d\udc27 in the string literal when it should be \U0001f427 (or 
F0 9F 90 A7

since the file encoding is UTF-8 anyway). That would have worked in earlier Python versions on platforms where wchar_t is 2 bytes, but current versions use UTF-32 internally.</div><div class="gmail_quote"><br></div></div>