Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 10th, 2012  |  syntax: None  |  size: 3.50 KB  |  views: 20  |  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. UnicodeEncodeError at /admin/core/translation/4/
  2.  
  3. 'ascii' codec can't encode character u'\xe9' in position 0: ordinal not in range(128)
  4.  
  5. Request Method:         POST
  6. Request URL:    http://localhost:8000/admin/core/translation/4/
  7. Django Version:         1.4
  8. Exception Type:         UnicodeEncodeError
  9. Exception Value:        
  10.  
  11. 'ascii' codec can't encode character u'\xe9' in position 0: ordinal not in range(128)
  12.  
  13. Exception Location:     D:\py\mylingua\core\words.py in __unicode__, line 17
  14. Python Executable:      c:\python27\python.exe
  15. Python Version:         2.7.3
  16. Python Path:    
  17.  
  18. ['D:\\py\\mylingua',
  19.  'c:\\python27\\lib\\site-packages\\setuptools-0.6c11-py2.7.egg',
  20.  'c:\\python27\\lib\\site-packages\\pip-1.1-py2.7.egg',
  21.  'C:\\Windows\\system32\\python27.zip',
  22.  'c:\\python27\\DLLs',
  23.  'c:\\python27\\lib',
  24.  'c:\\python27\\lib\\plat-win',
  25.  'c:\\python27\\lib\\lib-tk',
  26.  'c:\\python27',
  27.  'c:\\python27\\lib\\site-packages',
  28.  'c:\\python27\\lib\\site-packages\\win32',
  29.  'c:\\python27\\lib\\site-packages\\win32\\lib',
  30.  'c:\\python27\\lib\\site-packages\\Pythonwin']
  31.  
  32. Server time:    Tue, 10 Jul 2012 19:05:58 +0400
  33.  
  34. Unicode error hint
  35.  
  36. The string that could not be encoded/decoded was: été
  37. Traceback Switch to copy-and-paste view
  38.  
  39.     c:\python27\lib\site-packages\django\core\handlers\base.py in get_response
  40.  
  41.                                 response = callback(request, *callback_args, **callback_kwargs)
  42.  
  43.         ...
  44.     ▶ Local vars
  45.     c:\python27\lib\site-packages\django\contrib\admin\options.py in wrapper
  46.  
  47.                         return self.admin_site.admin_view(view)(*args, **kwargs)
  48.  
  49.         ...
  50.     ▶ Local vars
  51.     c:\python27\lib\site-packages\django\utils\decorators.py in _wrapped_view
  52.  
  53.                             response = view_func(request, *args, **kwargs)
  54.  
  55.         ...
  56.     ▶ Local vars
  57.     c:\python27\lib\site-packages\django\views\decorators\cache.py in _wrapped_view_func
  58.  
  59.                 response = view_func(request, *args, **kwargs)
  60.  
  61.         ...
  62.     ▶ Local vars
  63.     c:\python27\lib\site-packages\django\contrib\admin\sites.py in inner
  64.  
  65.                     return view(request, *args, **kwargs)
  66.  
  67.         ...
  68.     ▶ Local vars
  69.     c:\python27\lib\site-packages\django\utils\decorators.py in _wrapper
  70.  
  71.                     return bound_func(*args, **kwargs)
  72.  
  73.         ...
  74.     ▶ Local vars
  75.     c:\python27\lib\site-packages\django\utils\decorators.py in _wrapped_view
  76.  
  77.                             response = view_func(request, *args, **kwargs)
  78.  
  79.         ...
  80.     ▶ Local vars
  81.     c:\python27\lib\site-packages\django\utils\decorators.py in bound_func
  82.  
  83.                         return func(self, *args2, **kwargs2)
  84.  
  85.         ...
  86.     ▶ Local vars
  87.     c:\python27\lib\site-packages\django\db\transaction.py in inner
  88.  
  89.                         return func(*args, **kwargs)
  90.  
  91.         ...
  92.     ▶ Local vars
  93.     c:\python27\lib\site-packages\django\contrib\admin\options.py in change_view
  94.  
  95.                         self.log_change(request, new_object, change_message)
  96.  
  97.         ...
  98.     ▶ Local vars
  99.     c:\python27\lib\site-packages\django\contrib\admin\options.py in log_change
  100.  
  101.                     object_repr     = force_unicode(object),
  102.  
  103.         ...
  104.     ▶ Local vars
  105.     c:\python27\lib\site-packages\django\utils\encoding.py in force_unicode
  106.  
  107.                         s = unicode(s)
  108.  
  109.         ...
  110.     ▶ Local vars
  111.     D:\py\mylingua\core\words.py in __unicode__
  112.  
  113.             return "{} ({})".format(self.translation, self.word.lang.abbr)
  114.  
  115.         ...
  116.     ▶ Local vars
clone this paste RAW Paste Data