diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-11-14 20:42:48 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-11-15 11:50:27 +0000 |
commit | c9dd01a66866dbd7ff867608edcd5c82a0b5e1db (patch) | |
tree | b7930ae97d714616d1c7fb2b21f8bcc2e9d74cdc /t/cobrand | |
parent | a5bde7c6cd2bca5a8f1dfebdfb0a3040ead1566b (diff) |
Make sure returned geocoder data is UTF-8 decoded.
It turns out that HTTP::Message (as used by LWP::Simple::get) only
decodes text/* and 'XML', not application/json, as used by all the
geocoders. Work around this, hopefully in a future-proof way.
Diffstat (limited to 't/cobrand')
-rw-r--r-- | t/cobrand/fixamingata.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/cobrand/fixamingata.t b/t/cobrand/fixamingata.t index 06b5830e3..133a8c950 100644 --- a/t/cobrand/fixamingata.t +++ b/t/cobrand/fixamingata.t @@ -102,7 +102,7 @@ subtest "Test ajax decimal points" => sub { $mech->content_contains('51.5'); $mech->get_ok('/ajax/lookup_location?term=high+street'); - $mech->content_contains('Edinburgh'); + $mech->content_contains("Ed\xc3\xadnburgh"); }; }; |