Unicode string formating

2007-11-30 Thread nico
Hi, I need to do a lot of string formating, and I have strings and/or unicode strings and when I do the following: %s %s % (u'Salut', 'H\xe4llo'), I get an exception : UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 1: ordinal not in range(128) How can I insure I don't get an

Re: Unicode string formating

2007-11-30 Thread Diez B. Roggisch
nico schrieb: Hi, I need to do a lot of string formating, and I have strings and/or unicode strings and when I do the following: %s %s % (u'Salut', 'H\xe4llo'), I get an exception : UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 1: ordinal not in range(128) How can I