﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
4664	[unicode] UnicodeDecodeError with on postgresql 7.4 using psycopg1 backend on python 2.3	Øyvind Saltvik <oyvind@…>	Malcolm Tredinnick	"{{{

Traceback (most recent call last):
File ""/var/www/vhosts/3kanten.it/httpdocs/trunk/django/core/handlers/base.py"" in get_response
  77. response = callback(request, *callback_args, **callback_kwargs)
File ""/var/www/vhosts/3kanten.it/httpdocs/trekanten/kontakt/views.py"" in contact
  50. return object_list(request, **kwargs)
File ""/var/www/vhosts/3kanten.it/httpdocs/trunk/django/views/generic/list_detail.py"" in object_list
  75. }, context_processors)
File ""/var/www/vhosts/3kanten.it/httpdocs/trunk/django/template/context.py"" in __init__
  100. self.update(processor(request))
File ""/var/www/vhosts/3kanten.it/httpdocs/trekanten/meny/context_processors.py"" in meny
  9. menyliste = list(Side.objects.filter(i_meny=True)) + list(Element.objects.all())
File ""/var/www/vhosts/3kanten.it/httpdocs/trunk/django/db/models/query.py"" in __iter__
  109. return iter(self._get_data())
File ""/var/www/vhosts/3kanten.it/httpdocs/trunk/django/db/models/query.py"" in _get_data
  471. self._result_cache = list(self.iterator())
File ""/var/www/vhosts/3kanten.it/httpdocs/trunk/django/db/models/query.py"" in iterator
  188. rows = cursor.fetchmany(GET_ITERATOR_CHUNK_SIZE)
File ""/var/www/vhosts/3kanten.it/httpdocs/trunk/django/db/backends/postgresql/base.py"" in typecast_string
  273. return smart_unicode(s, client_encoding)
File ""/var/www/vhosts/3kanten.it/httpdocs/trunk/django/utils/encoding.py"" in smart_unicode
  25. return force_unicode(s, encoding, strings_only, errors)
File ""/var/www/vhosts/3kanten.it/httpdocs/trunk/django/utils/encoding.py"" in force_unicode
  42. s = unicode(s, encoding, errors)

  UnicodeDecodeError at /kontakt/
  'ascii' codec can't decode byte 0xc3 in position 134: ordinal not in range(128)

}}}

the variable encoding is ascii on line 42
"		closed	Database layer (models, ORM)	unicode		fixed			Accepted	0	0	0	0	0	0
