in reply to Re: Search & replace of UTF-8 characters ?
in thread Search & replace of UTF-8 characters ?

and also that it does not consider the input files as being UTF-8 encoded by default...

Perl has no idea what's in the file. It cannot assume the file's content is text encoded with UTF-8. In fact, it cannot assume the file's content is text at all. Unless you tell Perl otherwise, it gives you the file's contents: bytes.

  • Comment on Re^2: Search & replace of UTF-8 characters ?

Replies are listed 'Best First'.
Re^3: Search & replace of UTF-8 characters ?
by Anonymous Monk on Feb 26, 2010 at 07:26 UTC
    perl does assume it is text, that is why you have to binmode