with rev 12661, storage.py has been changed and
return smart_str(os.path.normpath(path))
has been replaced with
return os.path.normpath(path)

now, when trying to upload a filefield (or displaying the size of a
filefield), we get this error:
Caught UnicodeEncodeError while rendering: 'ascii' codec can't encode
character u'\xc4' in position 59: ordinal not in range(128)
return os.stat(filename).st_size (/usr/lib/python2.5/posixpath.py in
getsize)

with our setup (apache/mod_wsgi), LANG is set to en_US.UTF-8 (LC_ALL
is not set) ... unfortunately, this doesn´t solve the problem:
http://code.djangoproject.com/ticket/11030#comment:5
http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#if-you-get-a-unicodeencodeerror

I´ve been doing quite a bit of research and I´ve also discussed this
issue with the people responsible for our server-setup. now they say
that we need to resolve the issue and that the apache-setup is fine.
besides going back to rev 12552, is there another solution?

thanks,
patrick

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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