Python Unicode strangeness.

Syver Enstad syver at NOSPAMcyberwatcher.com
Thu Feb 8 09:39:26 EST 2001


'%s, %s' % ('æøasfd', u'a')
this throws unicode error.

'%s, %s' % (u'aøasfg', u'a')
this doesn't

'%s, %s' % ('aøasfg', 'a')
and this doesn't

'%s, %s' % (u'aøasfg', 'a')
and this doesn't

Is this by design?





More information about the Python-list mailing list