Table of Contents

Property SubjectEncoding

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll

SubjectEncoding

Gets or sets encoding used for NATS subjects and reply-to addresses. (default: UTF-8)

public Encoding SubjectEncoding { get; init; }

Property Value

Encoding

Remarks

The NATS protocol specifies that subjects are UTF-8 encoded on the wire. UTF-8 is backwards compatible with ASCII, so existing ASCII-only subjects are unaffected by this default.