tbusch has asked for the wisdom of the Perl Monks concerning the following question:
yields the errormy $html = "\x{feff}<!DOCTYPE HTML PUBLIC> <div class=\"course_detail_ +box_content\"> </div>"; $html =~ s!.*?</div><div\s+class="course_detail_box_content">!!s;
for Perl 5.8.6 on MacOS X 10.4, Perl 5.8.8 on CentOS 5, Perl 5.10.1 on CentOS 6 but seems to work for 5.12.3 on MacOS X 10.7. Can someone confirm that this is a known bug and that it has been fixed from 5.12 onwards ?Malformed UTF-8 character (overflow at 0x3c8443c3, byte 0x54, after st +art byte 0xbf) in substitution (s///)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Substitution bug on Unicode strings with Byte Order Mark (BOM)
by moritz (Cardinal) on May 15, 2012 at 11:40 UTC | |
|
Re: Substitution bug on Unicode strings with Byte Order Mark (BOM)
by ikegami (Patriarch) on May 17, 2012 at 19:49 UTC |