@
qiuai 还是ip138好一点……移动的显示成联通的了(好吧国内就是坑)
@
Livid http://www.v2ex.com/ip?ip=2.2.2.2 报错啦!
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/
web.py", line 1042, in _execute
getattr(self, self.request.method.lower())(*args, **kwargs)
File "/www/v2ex/galaxy/handlers/web/
ip.py", line 103, in get
self.finalize('ip/home.html')
File "/www/v2ex/galaxy/handlers/web/
__init__.py", line 71, in finalize
self.write(template.render(self.values))
File "/usr/local/lib/python2.7/dist-packages/jinja2/
environment.py", line 894, in render
return self.environment.handle_exception(exc_info, True)
File "/www/v2ex/galaxy/templates/desktop/ip/home.html", line 1, in top-level template code
{% extends 'desktop/common/layout0.html' %}
File "/www/v2ex/galaxy/templates/desktop/common/layout0.html", line 58, in top-level template code
{% block wrapper %}
File "/www/v2ex/galaxy/templates/desktop/common/layout0.html", line 121, in block "wrapper"
{% block main %}
File "/www/v2ex/galaxy/templates/desktop/ip/home.html", line 68, in block "main"
<td>{{ r2.area_code|n }}</td>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 2: ordinal not in range(128)
//看上去像是字符编码的错……