Accademia:Conv to utf8.py: differenze tra le versioni

nessun oggetto della modifica
Nessun oggetto della modifica
Nessun oggetto della modifica
 
Riga 5: Riga 5:
     """Convert the text file encoding to utf8."""
     """Convert the text file encoding to utf8."""
     text = open(inputfile, 'r', inputenc)
     text = open(inputfile, 'r', inputenc)
     utf = open('testo_utf', 'w') # to be modified
     utf = open('testo_utf', 'w')  
     for line in text:
     for line in text:
         utf.write(line)
         utf.write(line)
     text.close()
     text.close()
     utf.close()
     utf.close()
    #TODO


def main():
def main():
282

contributi