I have a problem with webpy.

In my app, I need to send to user dynamically created PDF file, how
can I do it?

When I tried to serve it normally i get this error ( standard Unicode
error ):

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/web/wsgiserver/__init__.py",
line 987, in communicate
    req.respond()
  File "/usr/lib/python2.5/site-packages/web/wsgiserver/__init__.py",
line 543, in respond
    self._respond()
  File "/usr/lib/python2.5/site-packages/web/wsgiserver/__init__.py",
line 555, in _respond
    response = self.wsgi_app(self.environ, self.start_response)
  File "/usr/lib/python2.5/site-packages/web/httpserver.py", line 200,
in __call__
    return self.app(environ, xstart_response)
  File "/usr/lib/python2.5/site-packages/web/application.py", line
220, in wsgi
    result = [utils.utf8(result)]
  File "/usr/lib/python2.5/site-packages/web/utils.py", line 224, in
safestr
    return safeunicode(obj).encode(encoding)
  File "/usr/lib/python2.5/site-packages/web/utils.py", line 207, in
safeunicode
    return obj.decode(encoding)
  File "/usr/lib/python2.5/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 10-12:
invalid data

How can I do it?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to