On Feb 4, 2008 1:02 AM,  <[EMAIL PROTECTED]> wrote:
snip
> Here's what I got from file file.txt
>
> file.txt: Big-endian UTF-16 Unicode English character data, with very
> long lines, with CRLF, CR, LF line terminators
>
> Does this explain why my regexp search wasn't working?
snip

It might.  How were you opening the file?  If you weren't opening it
as a UTF-16BE file then that would likely be a cause of error.  Try
this and let us know what happens:

open my $fh, "<:encoding(utf16be)", $file
    or die "could not open $file: $!";

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to