> x = [u"\xeeabc2:xyz", u"abc3:123"]
> u = "\xe7abc"
u is not a Unicode string.
> x.append("%s:%s" % ("xfasfs", u))
so what you append is not a Unicode string, either.
> x.append(u"Hello:afddfdsfa")
>
> y = u'\n'.join(x)
As a consequence, .join tries to convert the byte st
Hello,
I have a list of strings, some of the strings might be unicode. I am
trying to a .join operation on the list and the .join raises a unicode
exception. I am looking for ways to get around this.
I would like to get a unicode string out of the list with all string
elements seperated by '\n'
#!