Re: Webpy and UnicodeDecodeError

2009-12-18 Thread Dave Angel
Oscar Del Ben wrote: You'll notice that one of the strings is a unicode one, and another one has the character 0x82 in it. Once join() discovers Unicode, it needs to produce a Unicode string, and by default, it uses the ASCII codec to get it. If you print your 'l' list (bad name, by the way,

Re: Webpy and UnicodeDecodeError

2009-12-18 Thread Oscar Del Ben
On Dec 18, 4:43 pm, Dave Angel wrote: > Oscar Del Ben wrote: > > So I'm trying to send a file through webpy and urllib2 but I can't get > > around these UnicodeErrors. Here's the code: > > > # controller > > > x = web.input(video_original={}) > > params = {'foo': x['foo']} > > > files = (('video[o

Re: Webpy and UnicodeDecodeError

2009-12-18 Thread Dave Angel
Oscar Del Ben wrote: So I'm trying to send a file through webpy and urllib2 but I can't get around these UnicodeErrors. Here's the code: # controller x = web.input(video_original={}) params = {'foo': x['foo']} files = (('video[original]', 'test', x['video_original'].file.read ()),) client.uplo

Webpy and UnicodeDecodeError

2009-12-18 Thread Oscar Del Ben
So I'm trying to send a file through webpy and urllib2 but I can't get around these UnicodeErrors. Here's the code: # controller x = web.input(video_original={}) params = {'foo': x['foo']} files = (('video[original]', 'test', x['video_original'].file.read ()),) client.upload(upload_url, params,