V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Los
V2EX  ›  反馈

进行中文搜索时出现错误

  •  
  •   Los · 2010-08-01 19:26:45 +08:00 · 3727 次点击
    这是一个创建于 5263 天前的主题,其中的信息可能已经有所发展或是发生改变。
    以下是出错的信息
    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)
    2 条回复    1970-01-01 08:00:00 +08:00
    Livid
        1
    Livid  
    MOD
       2010-08-01 21:47:24 +08:00
    Fixed.
    Los
        2
    Los  
    OP
       2010-08-01 21:58:51 +08:00
    Ya!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2642 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 06:38 · PVG 14:38 · LAX 22:38 · JFK 01:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.