Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » I experience problem with special chars like æøå in filename when using models.ImageField. and models.FileFie ld [RSS Feed]

#1 June 12, 2010 13:37:38

M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

I experience problem with special chars like æøå in filename when using models.ImageField. and models.FileFie ld


I experience problem with special chars like æøå in filename when
using models.ImageField.

What am I doing wrong?

models.py
picture = models.ImageField(upload_to='pics', blank=True,
verbose_name='Picture of you')

Using model forms

Let say I want to upload picture named "æøå.jpg"

If I do that, I get the following error msg:
'ascii' codec can't encode characters in position 59-61: ordinal not
in range(128)

Django ver 1.2 Alpha

Please help me thanks

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

  • Root
  • » Django
  • » I experience problem with special chars like æøå in filename when using models.ImageField. and models.FileFie ld [RSS Feed]

Board footer

Moderator control

Enjoy the 15th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support