open(INFD, '<:utf8', $inFile) or die "Cannot open $inFile: $!"; #### ERROR: invalid byte sequence for encoding "UTF8": 0xe0b8 HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding". #### open(INFD, '<:utf8', $inFile) or die "Cannot open $inFile: $!"; open(INFD, '<:shiftjis', $inFile) or die "Cannot open $inFile: $!";