in reply to Re: Unicode and text files
in thread Unicode and text files
I hadn't been using utf8 because I didn't think that I really needed it with Perl 5.8. However, I just tried the same code with use utf8; added and nothing changed. The regular expression still doesn't match the appropriate line in the file and the line still prints as what appears to be a string of characters separated by spaces. This happens when opening the file with or without utf8 specified in the open statement.