aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Geocode.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-17 13:45:32 +0000
committerMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-17 13:45:32 +0000
commit426594a49a10b8c65b2b23b9952bb2866cace01b (patch)
tree4591fc99222eda20a1a8525e2968429a60abf53e /perllib/FixMyStreet/Geocode.pm
parentddfd8cc92ecb2d3060cc73bb813775d7c20b8a2c (diff)
Hopefully mostly fix charset issue (FastCGI was very unhelpful here, it turns out it auto-UTF-8 encodes sometimes without telling you.
Diffstat (limited to 'perllib/FixMyStreet/Geocode.pm')
-rw-r--r--perllib/FixMyStreet/Geocode.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Geocode.pm b/perllib/FixMyStreet/Geocode.pm
index 475b2f9bc..17a4d8539 100644
--- a/perllib/FixMyStreet/Geocode.pm
+++ b/perllib/FixMyStreet/Geocode.pm
@@ -147,6 +147,7 @@ sub list_choices {
my $out = '<p>' . $message . '</p>';
my $choice_list = '<ul>';
foreach my $choice (@$choices) {
+ $choice = decode_utf8($choice);
$choice =~ s/, United Kingdom//;
$choice =~ s/, UK//;
$url = Cobrand::url($cobrand, NewURL($q, -retain => 1, -url => $page, 'pc' => $choice), $q);