From edd58efa44a516afc7c8216b7d326c2055400d10 Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Mon, 15 Jun 2026 14:32:34 -0400 Subject: [PATCH] Remove UTF-8 BOM if present --- google-civic-api.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/google-civic-api.pl b/google-civic-api.pl index 5d006e0..905f71c 100755 --- a/google-civic-api.pl +++ b/google-civic-api.pl @@ -86,6 +86,7 @@ foreach my $file (@files) { # Read and parse the header line to create column mapping my $header = <$fh>; chomp $header; + $header =~ s/^\xef\xbb\xbf//; # Remove UTF-8 BOM if present (byte sequence) print "Header: $header\n" unless $emailCsvArg; # Parse header to get column indices by name