open(FILE, "<:encoding(UTF-8)", "test.txt") or ... #or open(FILE, "<:encoding(iso-8859-1)", "test.txt") or ...