dotConnect for PostgreSQL Documentation
Devart.Data.PostgreSql Namespace / PgSqlConnection Class / Charset Property

In This Topic
    Charset Property (PgSqlConnection)
    In This Topic
    Gets or sets charset that will be used on the client side.
    Syntax
    'Declaration
     
    Public Property Charset As String
    public string Charset {get; set;}

    Property Value

    String that represents charset supported by PostgreSQL server.
    Remarks
    By default, charset is equal to PostgreSQL server_encoding run-time parameter. You can set this property to convert string data returned by the server to the specified charset used by your application. For example, if your database encoding is KOI8 but your application uses WIN1251 charset you can set this property to WIN to convert KOI8 strings to WIN1251. You also can use Unicode property to transfer all data in the UTF8 charset, but it may significant reduce network traffic and thus decrease application performance.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also