#!/usr/bin/perl use strict; use warnings; use utf8; open(FILE, "<:encoding(UTF-8)", "c:\\folder\\í.txt") or print "Oops, can't open file: $!"; ;