Python returns length of 2 for single Unicode character string
Your Python binary was compiled with UCS-2 support (a narrow build) and internally anything outside of the BMP (Basic Multilingual Plane) is represented using a surrogate pair. That means such codepoints show up as 2 characters when asking for the length. You’ll have to recompile your Python binary to use UCS-4 instead if this matters … Read more