UtilitiesGetStringFromArrayRemovingBOM Method |
Gets a string from a byte-array, stripping a Byte Order Marker preamble if present.
Namespace: FiddlerAssembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax public static string GetStringFromArrayRemovingBOM(
byte[] arrInput,
Encoding oDefaultEncoding
)
Public Shared Function GetStringFromArrayRemovingBOM (
arrInput As Byte(),
oDefaultEncoding As Encoding
) As String
public:
static String^ GetStringFromArrayRemovingBOM(
array<unsigned char>^ arrInput,
Encoding^ oDefaultEncoding
)
Parameters
- arrInput
- Type: SystemByte
The byte array - oDefaultEncoding
- Type: System.TextEncoding
The encoding to convert from *if* there's no Byte-order-marker
Return Value
Type:
StringThe string
Remarks
This function really shouldn't need to exist. Why doesn't calling .GetString on a string with a preamble remove the preamble???
See Also