[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'SQLDB' (#fcl)

# TSQLConnection.CharSet

The character set to be used in this database

## Declaration

Source position: sqldb.pp line 299

`published property TSQLConnection.CharSet : string read FCharSet write FCharSet;`

## Description

Charset can be used to tell the user in which character set the data will be sent to the server, and in which character set the results should be sent to the client. Some connection types will ignore this property, and the data will be sent to the client in the encoding used on the server.

This property must be set prior to activating the connection. Changing it while the connection is active has no effect.

Remark: | SQLDB will not do anything with this setting except pass it on to the server if a specific connection type supports it. It does not perform any conversions by itself based on the value of this setting.

## See also

TSQLConnection.Password |  | Password used when authenticating on the database server
TSQLConnection.HostName |  | The name of the host computer where the database resides
TSQLConnection.UserName |  | The username for authentication on the database server
TSQLConnection.Role |  | Role in which the user is connecting to the database