{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/ba886eba4ee037cda1951e7b14557822?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ba886eba4ee037cda1951e7b14557822","url":"https://api.github.com/users/pjssilva","login":"pjssilva","id":1160841},"updated_at":"2011-10-30T14:30:37Z","labels":[],"assignee":null,"comments":1,"closed_at":"2011-10-30T14:30:37Z","url":"https://api.github.com/repos/shamil/indicator-places/issues/2","body":"Hi,\r\n\r\nI am Portuguese speaker and we use accents in our language. Some of my folders have names with accents and they are stored quoted in UTF-8 encoding inside the .gtk-bookmarks file. For example the folder \"/home/pjssilva/músicas\" is stored as\r\n\r\nfile:///home/pjssilva/m%C3%BAsica\r\n\r\nIf I use indicator-places.py, the label that will show up in the menu is \"m%C3%BAsica\", rather ugly. To fix this you should unquote the label using the unquote function of the urllib library.  The following patch only adds two lines to indicador-places.py that does just this.  Just copy and past just after the dashed line and save the result in a file named unquote_label.path and apply it.\r\n\r\nThanks for your little indicator!\r\n\r\n---- Cut here ----\r\n--- /tmp/indicator-places.py\t2011-10-30 12:08:55.634597244 -0200\r\n+++ indicator-places.py\t2011-10-30 12:11:41.010605250 -0200\r\n@@ -11,6 +11,7 @@\r\n import signal\r\n import subprocess\r\n import appindicator\r\n+import urllib\r\n \r\n APP_NAME = 'indicator-places'\r\n APP_VERSION = '0.3'\r\n@@ -81,6 +82,7 @@\r\n \r\n         # Populate bookmarks menu items\r\n         for bm in bookmarks:\r\n+            bm = urllib.unquote(bm)\r\n             path, label = bm.strip().partition(' ')[::2]\r\n \r\n             if not label:\r\n\r\n","html_url":"https://github.com/shamil/indicator-places/issues/2","title":"Labels should be unquoted","number":2,"id":2090717,"created_at":"2011-10-30T14:26:24Z"},"action":"closed"}