decodeURI Summary Decodes a full URI. Usage public string decodeURI(string uri) Returns The decoded (unescaped) URI. Parameters uri A full URI to decode. Description Decodes a full URI. If the input URI is invalid, System.Exceptions.InvalidURIException will be thrown. An example of an invalid URI would be the % escape character being used in isolation without a full escape sequence. decodeURI vs decodeURIComponent To understand the differences between decodeURI and decodeURIComponent and to learn the best practices in JS++ when dealing with these methods, please refer to the language guide on decodeURI versus decodeURIComponent. Examples Basic Usage 1234import System;import System.Encoding.URI; Console.log(decodeURI("http://example.com/no%20spaces")); // "http://example.com/no spaces" Example of how an exception can be thrown 123import System.Encoding.URI; decodeURI("%"); // escape character must include full escape sequence Share HTML | BBCode | Direct Link