]> git.openstreetmap.org Git - nominatim.git/blobdiff - tests/steps/api_setup.py
fix top-bottom mixup in bounding box
[nominatim.git] / tests / steps / api_setup.py
index 35443cdba6e1dabc3584697827974c379a7278c9..fcaa39a2adc91c01c4c9747f754562dc8f990452 100644 (file)
@@ -36,7 +36,7 @@ def api_call(requesttype):
         world.response_format = fmt
     elif fmt in ('json', 'jsonv2'):
         if 'json_callback' in world.params:
-            world.json_callback = world.params['json_callback']
+            world.json_callback = world.params['json_callback'].encode('utf8')
             assert world.page.startswith(world.json_callback + '(')
             assert world.page.endswith(')')
             world.page = world.page[(len(world.json_callback)+1):-1]