UrlEncodingTryDecode(String, String, Boolean, String) Method
Tries to decode a URL-encoded
String using a specified character
set and allows to specify whether or not PLUS characters ('+', U+002B) should be
decoded as SPACE characters (' ', U+0020).
Namespace: FolkerKinzel.StringsAssembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
public static bool TryDecode(
string? value,
string? encodingWebName,
bool decodePlusChars,
out string?? decoded
)
Public Shared Function TryDecode (
value As String,
encodingWebName As String,
decodePlusChars As Boolean,
<OutAttribute> ByRef decoded As String
) As Boolean
public:
static bool TryDecode(
String^ value,
String^ encodingWebName,
bool decodePlusChars,
[OutAttribute] String^% decoded
)
static member TryDecode :
value : string *
encodingWebName : string *
decodePlusChars : bool *
decoded : string byref -> bool
- value String
- The String to decode, or null.
- encodingWebName String
- The standardized web name of the character set to use,
or null or Empty as a replacement for "utf-8".
- 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.
Booleantrue if the decoding was successful, otherwise
false.