Text encoding issues.

Bug #235533 reported by Eric Moritz
2
Affects Status Importance Assigned to Milestone
Meow
Fix Committed
High
Eric Moritz

Bug Description

Exception in request:
Traceback (most recent call last):
  File "/base/python_lib/versions/1/django/core/handlers/base.py", line 77, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/base/data/home/apps/meow/1.31/views/main.py", line 28, in inner
    return func(request, *args, **kwargs)
  File "/base/data/home/apps/meow/1.31/views/actions.py", line 34, in post
    message.put()
  File "/base/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 615, in put
    self._populate_internal_entity()
  File "/base/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 597, in _populate_internal_entity
    self._entity = self._populate_entity(_entity_class=_entity_class)
  File "/base/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 645, in _populate_entity
    self._to_entity(entity)
  File "/base/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 587, in _to_entity
    entity[prop.name] = datastore_value
  File "/base/python_lib/versions/1/google/appengine/api/datastore.py", line 343, in __setitem__
    datastore_types.ToPropertyPb(name, value)
  File "/base/python_lib/versions/1/google/appengine/api/datastore_types.py", line 977, in ToPropertyPb
    pbvalue.set_stringvalue(unicode(v).encode('utf-8'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position 0: ordinal not in range(128)

Revision history for this message
Eric Moritz (ericmoritz) wrote :

Django 0.96.1 didn't force all inputs into unicode. I have to do it manually. Fixed in r47

Changed in meow:
assignee: nobody → ericmoritz
importance: Undecided → High
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.