Wide character in %s

  • Share
  • Share

Description:
Message> Wide character in %s

Perl

  1. admin
    March 22nd, 2009 at 21:18 | #1

    (W utf8) Perl met a wide character (>255) when it wasn’t
    expecting one. This warning is by default on for I/O (like print). The
    easiest way to quiet this warning is simply to add the :utf8 layer to the output, e.g. binmode STDOUT, ':utf8'. Another way to turn off the warning is to add no warnings 'utf8'; but that is often closer to cheating. In general, you are supposed to explicitly mark the filehandle with an encoding, see open and “binmode” in perlfunc.

  1. No trackbacks yet.