Merge pull request #3 from starflowerbracken/temporary

Update SearchEvents.pl
This commit is contained in:
Fred Beckhusen
2022-01-02 17:27:06 -06:00
committed by GitHub
+5
View File
@@ -60,6 +60,9 @@
$description =~ s/\xA0/ /g;
$description =~ s/ / /g;
$description =~ s/ / /g;
# the next two lines remove four-byte UTF-8 characters that MySQL won't like
my $not_bmp = qr([\x{10000}-\x{10FFFF}]);
$description =~ s/$not_bmp//g;
use HTML::Strip;
@@ -77,6 +80,8 @@
$name =~ s/\xA0/ /g;
$name =~ s/ / /g;
$name =~ s/ / /g;
# the next line removes four-byte UTF-8 characters that MySQL won't like (see above)
$name =~ s/$not_bmp//g;
# had to comment these out as another source of problem characters
#utf8::decode($name);