News for hackers. Stuff that matters.
Re:UTF-8 good, UTF-16 bad by pieter on Tuesday February 08, 2011 @03:07AM (#2192352)
It leaks through in some places. For example, len(u'\U0001D310') (from the Tai Xuan Jing Symbols) returns 1 on 32-bit wide pythons, and returns 2 on the default 16-bit wide builds.
Re:UTF-8 good, UTF-16 bad by Locke1689 on Tuesday February 08, 2011 @06:47AM (#2192602)
Nope, that's the correct behavior. Run len on the UTF encode and you'll get the expected result.