进行中文搜索时出现错误

2010-08-01 19:26:45 +08:00
 Los
以下是出错的信息
Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 511, in __call__
handler.get(*groups)
File "/base/data/home/apps/v2ex/1.343772786028903438/main.py", line 636, in get
node = GetKindByName('Node', q.lower())
File "/base/data/home/apps/v2ex/1.343772786028903438/v2ex/babel/da/__init__.py", line 34, in GetKindByName
if q.count() == 1:
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1717, in count
result = raw_query.Count(limit=limit, rpc=rpc)
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 1271, in Count
req = self._ToPb(limit=limit)
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 1487, in _ToPb
props = datastore_types.ToPropertyPb(name, values)
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore_types.py", line 1499, in ToPropertyPb
pbvalue = pack_prop(name, v, pb.mutable_value())
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore_types.py", line 1322, in PackString
pbvalue.set_stringvalue(unicode(value).encode('utf-8'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 0: ordinal not in range(128)
3688 次点击
所在节点    反馈
2 条回复
Livid
2010-08-01 21:47:24 +08:00
Fixed.
Los
2010-08-01 21:58:51 +08:00
Ya!

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1195

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX