diff options
| author | asciimoo <asciimoo@gmail.com> | 2014-02-15 07:28:21 +0100 |
|---|---|---|
| committer | asciimoo <asciimoo@gmail.com> | 2014-02-15 07:28:21 +0100 |
| commit | 5f8ae9b9654f4a6c92e0e28d60fdb82e20ac5e34 (patch) | |
| tree | 96bbb06965761380c5522cd3c394ad1434ea909d | |
| parent | fd651083f2521d0ba3af9dbf50862ed5a9f19f63 (diff) | |
[fix] unicode url fix
| -rw-r--r-- | searx/webapp.py | 3 |
1 files changed, 2 insertions, 1 deletions
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'] |