Re: compare unicode to non-unicode strings



On Aug 31, 11:04 pm, Asterix <aste...@xxxxxxxxxxx> wrote:
how could I test that those 2 strings are the same:

'séd' (repr is 's\\xc3\\xa9d')

No, the repr is 's\xc3\xa9d'.


u'séd' (repr is u's\\xe9d')

No, the repr is u's\xe9d'.

To answer your question:



.