Table of Contents

Class OtherEncodings

Namespace
UglyToad.PdfPig.Core
Assembly
UglyToad.PdfPig.Core.dll

Convenience access to frequently used encodings.

public static class OtherEncodings
Inheritance
OtherEncodings
Inherited Members

Fields

Iso88591

Latin 1 Encoding: ISO 8859-1 is a single-byte encoding that can represent the first 256 Unicode characters.

public static Encoding Iso88591

Field Value

Encoding

Methods

BytesAsLatin1String(byte[])

Convert the bytes to string using the ISO 8859-1 encoding.

public static string BytesAsLatin1String(byte[] bytes)

Parameters

bytes byte[]

Returns

string

BytesAsLatin1String(IReadOnlyList<byte>)

Convert the bytes to string using the ISO 8859-1 encoding.

public static string BytesAsLatin1String(IReadOnlyList<byte> bytes)

Parameters

bytes IReadOnlyList<byte>

Returns

string

StringAsLatin1Bytes(string)

Convert the string to bytes using the ISO 8859-1 encoding.

public static byte[] StringAsLatin1Bytes(string s)

Parameters

s string

Returns

byte[]