UtilitiesGetTextEncoding Method |
WARNING: May throw.
Gets an encoding, with proper respect for "utf8" as an alias for "utf-8"; Microsoft products don't support
this prior to 2015-era, but it turns out to be common. We do have a linter elsewhere that reports a warning
if it sees the dashless form.
https://github.com/telerik/fiddler/issues/38
Namespace: FiddlerAssembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax public static Encoding GetTextEncoding(
string sEncoding
)
Public Shared Function GetTextEncoding (
sEncoding As String
) As Encoding
public:
static Encoding^ GetTextEncoding(
String^ sEncoding
)
Parameters
- sEncoding
- Type: SystemString
Textual name of the encoding
Return Value
Type:
EncodingSee Also