You are totally right Karen This solved the problem, just as you said it would: export LANG='en_US.UTF-8' export LC_ALL='en_US.UTF-8' Thanks alot Karen :o)
So now I only need to: Fix the security issue to make sure that people dont upload php files etc. (I just read a warning about that) And if its possible, create some kind of resize function that can resize huge picture files before they get saved. And maybe create the rename function i menchined earlier in here, that removes special chars. On 15 Jun., 14:22, Karen Tracey <kmtra...@gmail.com> wrote: > On Tue, Jun 15, 2010 at 8:18 AM, MichaelHjulskov <needb...@gmail.com> wrote: > > > My good friend just told me to take a look here and define a function > > on upload_to that filters special chars from filenames. > > >http://docs.djangoproject.com/en/1.2/ref/models/fields/#django.db.mod... > > > Do you aggree? Would that be the an appropriate solution to solve this > > problem? > > You could use that as a workaround, but I would not call that the right > answer. The right answer is for the environment of the web server to be set > up so that unicode strings containing non-ASCII data can be successfully > passed to Python file system functions. > > Karen > --http://tracey.org/kmt/ -- 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 at http://groups.google.com/group/django-users?hl=en.