This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

jsonunicodepython

By: a guest on Aug 21st, 2011  |  syntax: None  |  size: 2.33 KB  |  views: 74  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. URL: http://178.79.177.78:6543/products/search/ofts/name?term=puky
  2. File '/opt/py_projects/toyadmin/env/lib/python2.6/site-packages/WebError-0.10.3-py2.6.egg/weberror/evalexception.py', line 431 in respond
  3.   app_iter = self.application(environ, detect_start_response)
  4. File '/opt/py_projects/toyadmin/env/lib/python2.6/site-packages/repoze.tm2-1.0b2-py2.6.egg/repoze/tm/__init__.py', line 24 in __call__
  5.   result = self.application(environ, save_status_and_headers)
  6. File '/opt/py_projects/toyadmin/env/lib/python2.6/site-packages/pyramid-1.1-py2.6.egg/pyramid/router.py', line 161 in __call__
  7.   response = view_callable(context, request)
  8. File '/opt/py_projects/toyadmin/env/lib/python2.6/site-packages/pyramid-1.1-py2.6.egg/pyramid/config.py', line 3141 in rendered_view
  9.   context)
  10. File '/opt/py_projects/toyadmin/env/lib/python2.6/site-packages/pyramid-1.1-py2.6.egg/pyramid/renderers.py', line 391 in render_view
  11.   return self.render_to_response(response, system, request=request)
  12. File '/opt/py_projects/toyadmin/env/lib/python2.6/site-packages/pyramid-1.1-py2.6.egg/pyramid/renderers.py', line 418 in render_to_response
  13.   result = self.render(value, system_values, request=request)
  14. File '/opt/py_projects/toyadmin/env/lib/python2.6/site-packages/pyramid-1.1-py2.6.egg/pyramid/renderers.py', line 414 in render
  15.   result = renderer(value, system_values)
  16. File '/opt/py_projects/toyadmin/env/lib/python2.6/site-packages/pyramid-1.1-py2.6.egg/pyramid/renderers.py', line 141 in _render
  17.   return json.dumps(value)
  18. File '/usr/lib/python2.6/json/__init__.py', line 230 in dumps
  19.   return _default_encoder.encode(obj)
  20. File '/usr/lib/python2.6/json/encoder.py', line 367 in encode
  21.   chunks = list(self.iterencode(o))
  22. File '/usr/lib/python2.6/json/encoder.py', line 306 in _iterencode
  23.   for chunk in self._iterencode_list(o, markers):
  24. File '/usr/lib/python2.6/json/encoder.py', line 204 in _iterencode_list
  25.   for chunk in self._iterencode(value, markers):
  26. File '/usr/lib/python2.6/json/encoder.py', line 309 in _iterencode
  27.   for chunk in self._iterencode_dict(o, markers):
  28. File '/usr/lib/python2.6/json/encoder.py', line 275 in _iterencode_dict
  29.   for chunk in self._iterencode(value, markers):
  30. File '/usr/lib/python2.6/json/encoder.py', line 294 in _iterencode
  31.   yield encoder(o)
  32. UnicodeDecodeError: 'utf8' codec can't decode byte 0x96 in position 37: invalid start byte
clone this paste RAW Paste Data