<type 'exceptions.UnicodeEncodeError'>
Python 2.5.4: /home/unolee/packages/bin/python
Wed Mar 10 12:50:21 2010

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/unolee/public_html/fcgi.py in run(self=<fcgi.Request object at 0xb7cdaeac>)
  578         """Runs the handler, flushes the streams, and ends the request."""
  579         try:
  580             protocolStatus, appStatus = self.server.handler(self)
  581         except:
  582             traceback.print_exc(file=self.stderr)
protocolStatus undefined, appStatus undefined, self = <fcgi.Request object at 0xb7cdaeac>, self.server = <fcgi.WSGIServer object at 0xb7cd2b6c>, self.server.handler = <bound method WSGIServer.handler of <fcgi.WSGIServer object at 0xb7cd2b6c>>
 /home/unolee/public_html/fcgi.py in handler(self=<fcgi.WSGIServer object at 0xb7cd2b6c>, req=<fcgi.Request object at 0xb7cdaeac>)
 1264         try:
 1265             try:
 1266                 result = self.application(environ, start_response)
 1267                 try:
 1268                     for data in result:
result = None, self = <fcgi.WSGIServer object at 0xb7cd2b6c>, self.application = <django.core.handlers.wsgi.WSGIHandler object at 0xb7e497cc>, environ = {'DOCUMENT_ROOT': '/home/unolee/public_html', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.unolee.com', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <function start_response at 0xb7cd8f0c>
 /home/unolee/packages/lib/python2.5/site-packages/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object at 0xb7e497cc>, environ={'DOCUMENT_ROOT': '/home/unolee/public_html', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.unolee.com', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<function start_response at 0xb7cd8f0c>)
  243                 # Apply response middleware
  244                 for middleware_method in self._response_middleware:
  245                     response = middleware_method(request, response)
  246                 response = self.apply_response_fixes(request, response)
  247         finally:
response = <django.http.HttpResponseNotFound object at 0xb6ffbd6c>, middleware_method = <bound method FlatpageFallbackMiddleware.process...FlatpageFallbackMiddleware object at 0xb741954c>>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
 /home/unolee/packages/lib/python2.5/site-packages/django/contrib/flatpages/middleware.py in process_response(self=<django.contrib.flatpages.middleware.FlatpageFallbackMiddleware object at 0xb741954c>, request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, response=<django.http.HttpResponseNotFound object at 0xb6ffbd6c>)
    8             return response # No need to check for a flatpage for non-404 responses.
    9         try:
   10             return flatpage(request, request.path_info)
   11         # Return the original response if any errors happened. Because this
   12         # is a middleware, we can't assume the errors will be caught elsewhere.
global flatpage = <function flatpage at 0xb7307f0c>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, request.path_info = u'/tag/\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd...'
 /home/unolee/packages/lib/python2.5/site-packages/django/contrib/flatpages/views.py in flatpage(request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, url=u'/tag/\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd...')
   21     """
   22     if not url.endswith('/') and settings.APPEND_SLASH:
   23         return HttpResponseRedirect("%s/" % request.path)
   24     if not url.startswith('/'):
   25         url = "/" + url
global HttpResponseRedirect = <class 'django.http.HttpResponseRedirect'>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, request.path = u'/tag/\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd...'
 /home/unolee/packages/lib/python2.5/site-packages/django/http/__init__.py in __init__(self=<django.http.HttpResponseRedirect object at 0xb6ffba0c>, redirect_to=u'/tag/\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd.../')
  405     def __init__(self, redirect_to):
  406         HttpResponse.__init__(self)
  407         self['Location'] = redirect_to
  408 
  409 class HttpResponsePermanentRedirect(HttpResponse):
self = <django.http.HttpResponseRedirect object at 0xb6ffba0c>, redirect_to = u'/tag/\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd.../'
 /home/unolee/packages/lib/python2.5/site-packages/django/http/__init__.py in __setitem__(self=<django.http.HttpResponseRedirect object at 0xb6ffba0c>, header='Location', value=u'/tag/\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd.../')
  318 
  319     def __setitem__(self, header, value):
  320         header, value = self._convert_to_ascii(header, value)
  321         self._headers[header.lower()] = (header, value)
  322 
header = 'Location', value = u'/tag/\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd.../', self = <django.http.HttpResponseRedirect object at 0xb6ffba0c>, self._convert_to_ascii = <bound method HttpResponseRedirect._convert_to_a....http.HttpResponseRedirect object at 0xb6ffba0c>>
 /home/unolee/packages/lib/python2.5/site-packages/django/http/__init__.py in _convert_to_ascii(self=<django.http.HttpResponseRedirect object at 0xb6ffba0c>, *values=('Location', u'/tag/\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd.../'))
  307             if isinstance(value, unicode):
  308                 try:
  309                     value = value.encode('us-ascii')
  310                 except UnicodeError, e:
  311                     e.reason += ', HTTP response headers must be in US-ASCII format'
value = u'/tag/\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd.../', value.encode = <built-in method encode of unicode object at 0xb73e3f38>

<type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode characters in position 5-34: ordinal not in range(128), HTTP response headers must be in US-ASCII format
      args = ('ascii', u'/tag/\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd.../', 5, 35, 'ordinal not in range(128)')
      encoding = 'ascii'
      end = 35
      message = ''
      object = u'/tag/\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd.../'
      reason = 'ordinal not in range(128), HTTP response headers must be in US-ASCII format'
      start = 5