You can have both, it's easy as soon as you accept that "byte array" and "string" are different beasts, and you need to convert between them. Doing Unicode right is easy in every language that does this (C#, Java, Haskell), tricky but manageable in those that sort-of do (Python, mainly), and a train wreck in everything that doesn't (PHP, Perl, C, ...).
That said, Python didn't really add much in terms of Unicode support from 2 to 3, the difference is mostly that 3 is a bit stricter when it comes to converting, the names have been fixed, and string literals now default to unicode strings, not bytestrings.
Python 3 is pretty close. I think there are a few somewhat surprising edge cases where conversions are somewhat implicit (e.g. feeding a bytestring to format), and those can bite you, but that's about it AFAIK.
146
u/johnasmith Dec 02 '15
For those wondering why there's a jump from 5 to 7, it's because the php 6 development branch was dedicated to full unicode support, but the work involved overwhelmed them, so they jumped to 7 to release new features without the unicode component.