Thanks for the quick reply.
I almost gave up, but I just found something that seems to work for
me.
So I've tried:
---
filename = codecs.BOM_UTF8.decode(postfile['filename'])
---
...which gave a LookupError.
Then I tried casting to Unicode:
---
filename = unicode(postfile['filename'])
---
...whi
On Wed, 2008-11-26 at 06:20 -0800, gnijholt wrote:
> Hello,
>
> I'm running Django r7548 using PostgreSQL 8.3 on Leopard.
> The problem: When I upload a file with a filename like '.jpg', I
> get the following error:
> ---
> UnicodeDecodeError at /library/documents/12114/addFile/
> 'ascii' c
Hello,
I'm running Django r7548 using PostgreSQL 8.3 on Leopard.
The problem: When I upload a file with a filename like '.jpg', I
get the following error:
---
UnicodeDecodeError at /library/documents/12114/addFile/
'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in
range(128)
3 matches
Mail list logo