def _read_text ( self , filename ) : with io . open ( filename , 'rt' , encoding = 'utf-8' ) as f : return f . read ( )
file not read in python with utf encoding
Helper that reads the UTF - 8 content of the specified file or None if the file doesn t exist . This returns a unicode string .
def _read_text(self, filename):
        """
        Helper that reads the UTF-8 content of the specified file, or
        None if the file doesn't exist. This returns a unicode string.
        """
        with io.open(filename, 'rt', encoding='utf-8') as f:
            return f.read()