Do not know. Anyway, I am fixing the utf8 in trunk.
On Tuesday, 5 August 2014 03:51:52 UTC-5, Carl Hunter Roach wrote:
>
> Each file in applications/app/languages has a line:
> # -*- coding: utf8 -*-
>
> I've had to ammend this to:
> # -*- coding: utf-8 -*-
>
> otherwise an exception is thrown in \Python\lib\encodings\utf_8.py (see
> below).
>
> utf-8 is the standard term rather than utf8.
>
> My question: does anyone know why all the language files in Web2py are
> parsed when using GAE Search? It'd be good if I could get the system to
> skip this step.
>
> Exception stack...
>
> File
> "F:\projects\workspace\jupiter\applications\jupiterapi\controllers/default.py",
>
> line 276, in <module>
>
> File "F:\projects\workspace\jupiter\gluon\globals.py", line 385, in
> <lambda>
>
> self._caller = lambda f: f()
>
> File
> "F:\projects\workspace\jupiter\applications\jupiterapi\controllers/default.py",
>
> line 107, in results
>
> options=options)
>
> File "applications\jupiterapi\modules\indexer\indexer.py", line 42, in
> searchWithOptions
>
> resultObj = index.search(query)
>
> File "C:\Program Files
> (x86)\Google\google_appengine\google\appengine\datastore\datastore_rpc.py",
> line 103, in positional_wrapper
>
> return wrapped(*args, **kwds)
>
> File "C:\Program Files
> (x86)\Google\google_appengine\google\appengine\api\search\search.py", line
> 2802, in search
>
> return self._NewSearchResults(response, cursor)
>
> File "C:\Program Files
> (x86)\Google\google_appengine\google\appengine\api\search\search.py", line
> 2678, in _NewSearchResults
>
> result_pb.expression_list(), per_result_cursor))
>
> File "C:\Program Files
> (x86)\Google\google_appengine\google\appengine\api\search\search.py", line
> 2663, in _NewScoredDocumentFromPb
>
> expressions=_NewFieldsFromPb(expressions), cursor=cursor)
>
> File "C:\Program Files
> (x86)\Google\google_appengine\google\appengine\api\search\search.py", line
> 1327, in _NewFieldsFromPb
>
> return [_NewFieldFromPb(f) for f in field_list]
>
> File "C:\Program Files
> (x86)\Google\google_appengine\google\appengine\api\search\search.py", line
> 1140, in _NewFieldFromPb
>
> value = _DecodeValue(_GetValue(pb.value()), val_type)
>
> File "C:\Program Files
> (x86)\Google\google_appengine\google\appengine\api\search\search.py", line
> 1132, in _DecodeValue
>
> return _DecodeUTF8(pb_value)
>
> File "C:\Program Files
> (x86)\Google\google_appengine\google\appengine\api\search\search.py", line
> 1125, in _DecodeUTF8
>
> return pb_value.decode('utf-8')
>
> File "C:\Python\lib\encodings\utf_8.py", line 16, in decode
>
> return codecs.utf_8_decode(input, errors, True)
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.