Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def utf8ify_dict(stuff):
    
    for k, v in stuff.items():

        if v and type(v) == types.UnicodeType:
            try:
                v = v.encode('utf8')
            except Exception, e:
                logging.error(e)
                v = ''

        stuff[k] = v

    return stuff
        


src/i/m/ima-collection-HEAD/bin/generate-csv-actors.py   ima-collection(Download)
                writer_actors.writeheader()
 
            data = utils.utf8ify_dict(data)
            writer_actors.writerow(data)