walktree browser filenames problem

Richard Brodie R.Brodie at rl.ac.uk
Fri Feb 4 06:45:17 EST 2005


"dimitri pater" <dimitri.pater at gmail.com> wrote in message
news:mailman.1877.1107516622.22381.python-list at python.org...

> The problem is that the filenames are cut off in the status bar of the
> browser because of the white space (eg 'hello.pdf' works, but 'hello
> there.pdf' is displayed as hello).

urllib.quote() should do the trick. You need to follow the rules for
encoding URIs as well as the HTML ones.





More information about the Python-list mailing list