def utf_8_encoder(unicode_csv_data):
    for line in unicode_csv_data:
        (yield line.encode('utf-8'))
def utf_8_encoder(unicode_csv_data):
    for line in unicode_csv_data:
        (yield line.encode('utf-8'))