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' codec can't decode byte 0xc3 in position 1: ordinal not in
> range(128)
> ---

Looking back at the commit logs, r7548 was May, 2008. Since then we've
committed a large file system refactor, so this may well have just been
a bug in the old system. I don't know for sure.

In the new system, there still may be a non-ASCII filename handling bug,
since ticket #9696 was opened recently. Somebody will need to look at
the code carefully and trace through what is happening there.

Somebody might have a suggestion about how to work around your
particular problem with Django 0.96, but there isn't going to be any
sort of fix to Django made for that, since it's code that doesn't exist
any longer.

Regards,
Malcolm


> 
> When I run codecs.BOM_UTF8.decode() on the filename, I get the
> following error:
> ---
> LookupError at /library/documents/12114/addFile/
> unknown encoding: éééé.jpg
> ---
> 
> I've kind of run out of ideas for this problem.
> Am I missing something?
> 
> Thanks !
> 
> Gijs
> > 
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to