From 5f8ae9b9654f4a6c92e0e28d60fdb82e20ac5e34 Mon Sep 17 00:00:00 2001 From: asciimoo Date: Sat, 15 Feb 2014 07:28:21 +0100 Subject: [PATCH] [fix] unicode url fix --- searx/webapp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/searx/webapp.py b/searx/webapp.py index eb4240f44..b3b422dff 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -140,7 +140,8 @@ def index(): .strip().split()) if len(result['url']) > 74: url_parts = result['url'][:35], result['url'][-35:] - result['pretty_url'] = '{0}[...]{1}'.format(*url_parts) + print url_parts + result['pretty_url'] = u'{0}[...]{1}'.format(*url_parts) else: result['pretty_url'] = result['url']