[Tutor] Creating a unicode string from bytes and % opperator

Tim Golden mail at timgolden.me.uk
Mon Jul 28 11:33:10 CEST 2008

Wesley Brooks wrote:
> Thanks Tim Golden,
> That'll do the trick! Thought there must have been something simple for it!

To be perverse, you *could* have done it like this:

eval ("u'\u" + "%s%s'" % ("0d", "fe"))

But please don't :)


More information about the Tutor mailing list