)
Decodes the percent-encoding in encodedComponent
, converting
pluses to spaces.
It will create a byte-list of the decoded characters, and then use
encoding
to decode the byte-list to a String. The default encoding is
UTF-8.
Source
/**
* Decodes the percent-encoding in [encodedComponent], converting
* pluses to spaces.
*
* It will create a byte-list of the decoded characters, and then use
* [encoding] to decode the byte-list to a String. The default encoding is
* UTF-8.
*/
static String decodeQueryComponent(
String encodedComponent,
{Encoding encoding: UTF8}) {
return _uriDecode(encodedComponent, plusToSpace: true, encoding: encoding);
}