diff --git a/fgmetric/metric_writer.py b/fgmetric/metric_writer.py index 21de462..98aaa65 100644 --- a/fgmetric/metric_writer.py +++ b/fgmetric/metric_writer.py @@ -62,7 +62,7 @@ def __init__( lineterminator: The string used to terminate lines produced by the MetricWriter. """ self._metric_class = metric_class - self._fout = Path(filename).open("w") + self._fout = Path(filename).open("w", encoding="utf-8") try: self._writer = DictWriter(