Language

DownloadedFile.Text(Encoding) Method

Definition

Decode bytes as UTF-8 (or a provided encoding). No content-type check. Lossy: invalid bytes become the U+FFFD replacement character and never throw. For strict or binary-safe reads, use Bytes.

public string Text(System.Text.Encoding? encoding = default);
member this.Text : System.Text.Encoding -> string
Public Function Text (Optional encoding As Encoding = Nothing) As String

Parameters

encoding
Encoding

Encoding to decode with. Defaults to UTF-8.

Returns

Applies to