Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: string FromUtf8(this byte[], bool)

Declaration

public static string FromUtf8(
    this byte[] input,
    bool removeBom = false
)

Summary

Converts the specified raw UTF-8 data to a string.

Parameters

this byte[]input Data to interpret as UTF-8 text.
boolremoveBomtrue to remove the first character if it is a UTF-8 BOM.

Returns

A string containing the characters represented by the UTF-8-encoded input.