Gets or sets the Encoding to use to encode and decode command parameters and server responses.

Namespace:  Rebex.Net
Assembly:  Rebex.Sftp (in Rebex.Sftp.dll)

Syntax

Visual Basic
Public Property Encoding As Encoding
	Get
	Set
C#
public Encoding Encoding { get; set; }

Field Value

The Encoding to use to encode and decode command parameters and server responses. Default is Encoding.Default.

Implements

IFtp..::..Encoding

Remarks

Even though the RFC implies that UTF-8 is to be used to encode all communication, the practice is very different, unfortunately. In the real world, all SFTP servers seem to default to the OS default charset.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also