X-Git-Url: http://git.euphorik.ch/?p=pompage.git;a=blobdiff_plain;f=xpi%2Fcomponents%2FhandleProtocol.js;fp=xpi%2Fcomponents%2FhandleProtocol.js;h=8150a6c424750c82ca328e8bbb96f2a85ff13d11;hp=d10fa53b690771930ba4e4ffe48518bab0afd7ba;hb=c3b0deb3d8c9f439739c79806e915c29bc1d4b84;hpb=cff6539539a79e014f6ac8df46716cafce2c8472 diff --git a/xpi/components/handleProtocol.js b/xpi/components/handleProtocol.js index d10fa53..8150a6c 100644 --- a/xpi/components/handleProtocol.js +++ b/xpi/components/handleProtocol.js @@ -111,7 +111,8 @@ DivxProtocolHandler.prototype.newChannel = function(aURI) // ajoute le chemin (spécifié dans les options) var root = divxlistGetRoot(); - chemin = chemin.replace("divx://", root + "/") + // décodage UTF8->latin1 : http://ecmanaut.blogspot.com/2006/07/encoding-decoding-utf8-in-javascript.html + chemin = decodeURIComponent(chemin.replace("divx://", root + "/")) // extrait le chemin de l'application de la commande // puis l'enlève de la commande