Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I am getting these warnings while running the script. Can any body tell me how to solve them and are they fatal?

Malformed UTF-8 character (overflow at 0xb2823d47, byte 0xe7, after st +art byte 0xbf) in pattern match (m//) at CCSearchX2_2_2_5_2.pl line 6 +70.

line 670 -->

while($text =~ /(.?B\d{13,19}\^[\w \/]{2,26}\^[\w\?;=]+\??|.?\d{13,19 +}[D=]\w+\??|(?<!\d)\d{3}[\d\- $seperators]{7,14}\d{3}(?!\d))/g)

Replies are listed 'Best First'.
Re: UTF-8 warnings
by toolic (Bishop) on Mar 13, 2012 at 14:52 UTC
Re: UTF-8 warnings
by ikegami (Patriarch) on Mar 13, 2012 at 21:47 UTC

    The problem is that $text is internally invalid because something told Perl a buffer contained UTF-8 when it didn't.