diff --git a/examples/utils_glue.py b/examples/utils_glue.py index 5ad36abf..bba9a901 100644 --- a/examples/utils_glue.py +++ b/examples/utils_glue.py @@ -78,7 +78,7 @@ class DataProcessor(object): @classmethod def _read_tsv(cls, input_file, quotechar=None): """Reads a tab separated value file.""" - with open(input_file, "r", encoding="utf-8") as f: + with open(input_file, "r", encoding="utf-8-sig") as f: reader = csv.reader(f, delimiter="\t", quotechar=quotechar) lines = [] for line in reader: