diff options
author | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-16 19:23:48 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-16 19:23:48 +0000 |
commit | befd99b8e4ae3d2f60761dc9c658f3b6d6576054 (patch) | |
tree | c9d939772b1904cc5a2756dfef1c64ee0133b866 /bin/send-reports | |
parent | 3c6eaa0460dbbc548b896eb0189fdae13596ac12 (diff) |
Various encoding fixing.
Diffstat (limited to 'bin/send-reports')
-rwxr-xr-x | bin/send-reports | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/send-reports b/bin/send-reports index ef3da8c46..7f9454685 100755 --- a/bin/send-reports +++ b/bin/send-reports @@ -115,7 +115,7 @@ foreach my $row (@$unsent) { my $council = $row->{council}; $areas_info = mySociety::MaPit::call('areas', $council); - my $name = $areas_info->{$council}->{name}; + my $name = encode_utf8($areas_info->{$council}->{name}); my ($council_email, $confirmed, $note) = dbh()->selectrow_array( "SELECT email,confirmed,note FROM contacts WHERE deleted='f' and area_id=? AND category=?", {}, $council, 'Empty property'); @@ -142,7 +142,7 @@ foreach my $row (@$unsent) { my (@dear, %recips); my $all_confirmed = 1; foreach my $council (@councils) { - my $name = $areas_info->{$council}->{name}; + my $name = encode_utf8($areas_info->{$council}->{name}); push @dear, $name; if ($council == 2330) { # E. Hants have a web service $send_web = 1; @@ -186,7 +186,7 @@ foreach my $row (@$unsent) { : ''; $h{missing} = ''; if ($missing) { - my $name = $areas_info->{$missing}->{name}; + my $name = encode_utf8($areas_info->{$missing}->{name}); $h{missing} = '[ We realise this problem might be the responsibility of ' . $name . "; however, we don't currently have any contact details for them. If you know of an appropriate contact address, please do get in touch. ]\n\n"; |