282
contributi
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') | 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() | ||
def main(): | def main(): |
contributi