def read_utf8(self):
        try:
            import codecs
            f = codecs.open(self.filepath, encoding='utf_8', mode='r')
        except __HOLE__ as ioe:
            sys.stderr.write("Glue Plugin Error: Unable to open file for read with read_utf8() method.")
            raise ioe
        try:
            return f.read()
        except Exception as e:
            sys.stderr.write("Glue Plugin Error: Unable to read the file with UTF-8 encoding using the read_utf8() method.")
            raise e
        finally:
            f.close()

#------------------------------------------------------------------------------
# [ FileWriter class ] - write to local files
#------------------------------------------------------------------------------
dataset/ETHPy150Open chrissimpkins/glue/GlueIO.py/FileReader.read_utf8