<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Folks,<div><br></div><div>I am in the process of writing, a "gallery" style web server application using twisted....</div><div><br></div><div>The main goal is to be able to browse, and access my image library, without having to add the files to a database, etc....</div><div><br></div><div>The issue I am having is with the URL processing....</div><div><br></div><div>Standard ASCII, and non-extended characters are working fine.... &nbsp;And I've tried using urllib.quote &amp; urllib.quoteplus (along with unquote), to solve this problem.... &nbsp;</div><div><br></div><div>But an URL with a dash (-) or number sign (#), or non-ASCII (eg&nbsp;2012.7.1-撮影会- &nbsp;de die in diem) prevents it working...</div><div><br></div><div>The DASH or number sign will generally produce a 500 internal server error, non-ascii, will allow me to transverse to the directory, but the server fails to properly decode the URL, and none of the images work.....</div><div><br></div><div>What happens is....</div><div><br></div><div>Server side -&nbsp;</div><div><br></div><div>The Server decodes the request string, and transverse to the directory structure in the URL. &nbsp;For example,&nbsp;<a href="http://127.0.0.1:8888/albums/Television/B5/">http://127.0.0.1:8888/albums/Television/B5/</a> would transverse into the albums / Television / B5 directory.... &nbsp;And&nbsp;<a href="http://127.0.0.1:8888/albums/Television/B5/ADVDEST.JPG?slideshow=1">http://127.0.0.1:8888/albums/Television/B5/ADVDEST.JPG?slideshow=1</a> would show the ADVDEST.JPG that is stored in the directory...</div><div><br></div><div>The issue I am having is that the POST request string is stopping at a single quote mark...</div><div><br></div><div><div>pre - &nbsp;['albums']</div><div>post - &nbsp;['anime', '(C54) [RPG']</div><div>RS /albums/anime/(C54) [RPG</div><div>/Volumes/DVR Storage/MMAP/gallery/sites</div><div>['albums']</div><div>POST ['anime', '(C54) [RPG']</div><div>ARGS {}</div><div><br></div></div><div>The directory name is&nbsp;(c54) [rpg' company (toumi haruka)] wedding bell (ah my goddess) [english][saha].</div><div><br></div><div>Any one have any suggestions on how to solve this? &nbsp;As I mentioned URLlib.quote_plus / unquote_plus don't seem to make a difference....</div><div><br></div><div>The one idea I had, was to send the web server an index, but that would be a pain, since you would not be able to type in the directory, as a shortcut... &nbsp;You would only be able to transverse via the web GUI....</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>- Benjamin</div><div><br></div></body></html>