Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

2012-03-09 Thread Christophe
aders self._send_output(message_body) File "/opt/lib/python2.7/httplib.py", line 801, in _send_output msg += message_body UnicodeDecodeError: 'ascii' codec can't decode byte 0xf8 in position 26: ordinal not in range(128) This happens when I "manage.py s

Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

2011-03-04 Thread Karen Tracey
On Thu, Mar 3, 2011 at 8:24 AM, Karen Tracey wrote: > A real fix I believe would need to be made to the Python library code to > ensure that it doesn't die if the windows registry contains non-ASCII data. > In fact there is a bug open in the Python bug tracker for this: http://bugs.python.org/i

Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

2011-03-03 Thread Vladimir
Dear friends! Karen Tracey gave me great reference: http://www.google.com/url?sa=D&q=http://groups.google.com/group/django-users/msg/7fe07998db471693 There is reference to original work: http://victor-k-development.blogspot.com/2010/07/unicodedecodeerror-django.html Victor discovered a cause of thi

Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

2011-03-03 Thread Karen Tracey
On Thu, Mar 3, 2011 at 8:57 AM, Perses Titan wrote: > In your case, most probably django crashs when it reads nonASCII > characters from DB. > > No. The posted traceback clearly shows where the error is occurring and it is nowhere in Django. As I posted earlier it looks like a bug in the Python l

Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

2011-03-03 Thread Perses Titan
django crashs when it reads nonASCII characters from DB. Wadim. On 3 мар, 08:48, Vladimir wrote: > Good morning! > In me first exercise project with Django I met an error message: > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position > 0: ordinal not in

Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

2011-03-03 Thread Karen Tracey
num_types > ctype=ctype.encode(default_encoding) # omit in 3.x! > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position > 0: ordinal not in range(128) > This looks like a bug in Python. Traceback is showing Python mimetypes init() trying to read the window

Re: UnicodeDecodeError: 'ASCII' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

2011-03-03 Thread Vladimir
Thank You very much! It is set by default but there is no error message. Some days ago, when I had another problem, web browser showed messages. On 3 мар, 12:10, "Szabo, Patrick \(LNG-VIE\)" wrote: > If you want to see errors in the browser you might want to set "DEBUG = True" > in your setting

Re: UnicodeDecodeError: 'ASCII' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

2011-03-03 Thread Vladimir
m > Auftrag von Vladimir > Gesendet: Donnerstag, 03. März 2011 10:01 > An: Django users > Betreff: Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in > position 0: ordinal not in range(128) > > 1. web browser does not give messages, in command line I s

AW: UnicodeDecodeError: 'ASCII' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

2011-03-03 Thread Szabo, Patrick (LNG-VIE)
ine 355, in init db.read_windows_registry() File "C:\Python27\lib\mimetypes.py", line 259, in read_windows_registry for ctype in enum_types(mimedb): File "C:\Python27\lib\mimetypes.py", line 249, in enum_types ctype=ctype.encode(default_encoding) # omit in 3.x! U

Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

2011-03-03 Thread Vladimir
t;C:\Python27\lib\mimetypes.py", line 259, in read_windows_registry for ctype in enum_types(mimedb): File "C:\Python27\lib\mimetypes.py", line 249, in enum_types ctype=ctype.encode(default_encoding) # omit in 3.x! UnicodeDecodeError: 'ascii' codec can't decode b

Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

2011-03-02 Thread Daniel Roseman
On Thursday, March 3, 2011 6:48:21 AM UTC, Vladimir wrote: > > Good morning! > In me first exercise project with Django I met an error message: > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position > 0: ordinal not in range(128). Admin pages ar

AW: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

2011-03-02 Thread Szabo, Patrick (LNG-VIE)
- Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im Auftrag von Vladimir Gesendet: Donnerstag, 03. März 2011 07:48 An: Django users Betreff: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128) Good morning! In me first ex

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

2011-03-02 Thread Vladimir
Good morning! In me first exercise project with Django I met an error message: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128). Admin pages are built without css. Then I changed all .py-files entering # -*- coding: utf-8 -*- into th