diff --git a/src/translate.erl b/src/translate.erl index 758784f18..846b33e06 100644 --- a/src/translate.erl +++ b/src/translate.erl @@ -78,7 +78,7 @@ load_dir(Dir) -> load_file(Lang, File) -> case file:open(File, [read]) of {ok, Fd} -> - epp:set_encoding(Fd, latin1), + io:setopts(Fd, [{encoding,latin1}]), load_file_loop(Fd, 1, File, Lang), file:close(Fd); Error ->