Answers for "python read file unicode"

0

open python choose encoding

open(filename, encoding='ISO-8859-15')
Posted by: Guest on December-05-2020
0

how to read unicode in python

import codecs
with codecs.open('unicode.rst', encoding='utf-8') as f:
    for line in f:
        print repr(line)
Posted by: Guest on July-16-2021

Python Answers by Framework

Browse Popular Code Answers by Language