Hi all,
I have written an application using Django 1.3 , apache2 and a mysql
db.
I'm using the db to store filepaths and filenames for legacy purposes
while serving them to users with apache.
Now mysql is using latin-1 (with the filenames most likely stored in
CP-1252) while Django uses utf-8.
I generate the links to the files thusly in my template:
<a href="/DocDB{{path}}/{{file.filename|
urlencode}}">{{ file.filename }}</a>
This works until I have funky character, lets say File….pdf
Then my hyperlink reads:
<a href="/path/File%E2%80%A6.pdf">File….pdf</a>
While Apache throws a 404 with: NotFound /path/File….pdf
Obviously because it expects this link:
<a href="/path/File%85.pdf">File….pdf</a>
Any ideas how to fix this in the template?
Thanks
--
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.