3 ms·
Python 2.6/2.7 handle Unicode just fine. I've had all-Unicode programs running since the early days of Python 2.6. Python 3 just does it somewhat differently.
by Animats 12y ago
Python 2.6/2.7 handle Unicode just fine. I've had all-Unicode programs running since the early days of Python 2.6. Python 3 just does it somewhat differently.
If you need to print byte strings, you use
print(repr(os.listdir()))
That's worked since Python 2.6.
- the_mitsuhiko 12y agoThat does not work on Python 3 as repr now includes unicode characters.