Unicode to String in python language

Ignacio Vazquez-Abrams ignacio at openservices.net
Tue Aug 28 20:18:21 EDT 2001


On Tue, 28 Aug 2001, Ignacio Vazquez-Abrams wrote:

> On Wed, 29 Aug 2001, Kim C Tran wrote:
>
> > Hi all,
> >
> > The function win32net.NetUserEnum(None,2,filter,resume) return all the
> > information of users and I loop in through the list and get User Name
> > and Full name and then I sort the list on Full name but then I got
> > this error "can only concatenate list (not "unicode") to list "
> >
> >
> > What is the command use to convert the Unicode to String ??
> >
> > Thanks in advance,
>
> It sounds like you're doing something very wrong. Show some code.

Never mind, I've figured it out. You're supposed to use list.append(string),
not list=list+string or list+=string.

-- 
Ignacio Vazquez-Abrams  <ignacio at openservices.net>





More information about the Python-list mailing list