Click or drag to resize
UtilitiesGetStringFromArrayRemovingBOM Method
Gets a string from a byte-array, stripping a Byte Order Marker preamble if present.

Namespace: Fiddler
Assembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax
public static string GetStringFromArrayRemovingBOM(
	byte[] 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: String
The 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