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,
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
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
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,