AnsweredAssumed Answered

Field values returned in unicode

Question asked by recurvata on Jul 16, 2014
Latest reply on Jul 17, 2014 by curtvprice

In the code below, the field values are returned in unicode (e.g. (u'  06510',)). How do I get this to return ascii, as in 06510,? Thanks. Hopefully doing this right, new forums confusing.

 

with arcpy.da.SearchCursor(fc, "OLDPLATE") as rows:

        for row in rows:

            if row is None or len(row) == 0: lstNullOldPlates.append("Null or empty")

            else: lstAllOldPlates.append('{0}'.format(row))

Outcomes