UrlEncodingTryDecode(String, Int32, Boolean, String) Method

Tries to decode a URL-encoded String using a specified code page and allows to specify whether or not PLUS characters ('+', U+002B) should be decoded as SPACE characters (' ', U+0020).

Definition

Namespace: FolkerKinzel.Strings
Assembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
C#
public static bool TryDecode(
	string? value,
	int codePage,
	bool decodePlusChars,
	out string?? decoded
)

Parameters

value  String
The String to decode, or null.
codePage  Int32
The code page to use.
decodePlusChars  Boolean
true to decode PLUS characters ('+', U+002B) as SPACE characters (' ', U+0020), or false to include the PLUS characters unchanged in decoded.
decoded  String
After the method completes successfully, contains a String that represents the decoded content of value.

Return Value

Boolean
true if the decoding was successful, otherwise false.

See Also