3 ms·
In 2.6 you can use: "from __future__ import unicode_literals". Use b'...' to get a str() instance instead of a unicode() object after that.
by nas 16y ago
In 2.6 you can use: "from __future__ import unicode_literals". Use b'...' to get a str() instance instead of a unicode() object after that.
- mshafrir 16y agoSome gotchas: http://stackoverflow.com/questions/809796/any-gotchas-using-unicode-literals-in-python-2-6 http://stackoverflow.com/questions/809796/any-gotchas-using-...