diff options
author | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-22 12:36:31 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-22 12:36:31 +0000 |
commit | 71d3ebb75f1bad04decb3970c7652118c852448d (patch) | |
tree | 0b0d544962e261fad56859e159d84dfc8acebac6 /bin/send-questionnaires | |
parent | aa0611663f2852f48b8a77481bc9d6da406b2cc1 (diff) |
Fix char encoding in emails.
Diffstat (limited to 'bin/send-questionnaires')
-rwxr-xr-x | bin/send-questionnaires | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/send-questionnaires b/bin/send-questionnaires index 5b0350f29..d3945bf12 100755 --- a/bin/send-questionnaires +++ b/bin/send-questionnaires @@ -63,7 +63,7 @@ foreach my $row (@$unsent) { my @all_councils = split /,|\|/, $row->{council}; my $cobrand = $row->{cobrand}; my $lang = $row->{lang}; - Cobrand::set_lang_and_domain($cobrand, $lang); + Cobrand::set_lang_and_domain($cobrand, $lang, 1); # Cobranded and non-cobranded messages can share a database. In this case, the conf file # should specify a vhost to send the reports for each cobrand, so that they don't get sent # more than once if there are multiple vhosts running off the same database. The email_host @@ -76,7 +76,7 @@ foreach my $row (@$unsent) { my %h = map { $_ => $row->{$_} } qw/name title detail category/; $h{created} = Page::prettify_duration($row->{created}, 'week'); - $h{councils} = join(' and ', map { encode_utf8($areas_info->{$_}->{name}) } @councils); + $h{councils} = join(' and ', map { $areas_info->{$_}->{name} } @councils); my $id = dbh()->selectrow_array("select nextval('questionnaire_id_seq');"); dbh()->do('insert into questionnaire (id, problem_id, whensent) |