[Project_owners] URL decode

Neil neil at parkwaycc.co.uk
Sat Feb 14 12:20:22 EST 2004


Eelco van Kuik wrote:

>I want to decode strings of which I know with which Charset they were encoded. But it could be with every single one of them
>  
>
var textToSubURI = 
Components.classes['@mozilla.org/intl/texttosuburi;1'].getService(Components.interfaces.nsITextToSubURI);
unescapedURI = textToSubURI.unEscapeNonAsciiURI(characterSet, escapedURI);

Note that this may throw an exception if the URI has not been properly 
escaped in the given character encoding.



More information about the Project_owners mailing list