I know this has been discussed already but the solutions mentioned did not work: I tried to change encoding = "ascii" to encoding = "utf-8" in site.py then I tried to add export LANG='en_US.UTF-8' and export LC_ALL='en_US.UTF-8' in Apache envvars.
The problem seems to be in the path since it happens at save time and the genericpath.py / exists is called to verify the path and returns what follows. Any hint is welcome. This is an ubuntu server but it happens also on the debian box. Django 1.3.1, python 2.7. The view is a form with request.POST that is saved.
# Does a path exist?
# This is false for dangling symbolic links on systems that support them.
def exists(path):
"""Test whether a path exists. Returns False for broken symbolic links"""
try:
os.stat(path)
...
except os.error:
return False
return True
# This follows symbolic links, so both islink() and isdir() can be true
| Variable | Value |
|---|---|
| path |
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/HkD7blsGkrsJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment