# Method Sql.pgsql()->set_charset()

Method set_charset

  ``final` `void` set_charset(`string` `charset`)`

Description

  Changes the connection charset. When set to `"UTF8"`, the query, parameters and results can be Pike-native wide strings.

Parameter `charset`

  A PostgreSQL charset name.

See also

  get_charset(), create(), http://www.postgresql.org/search/?u=%2Fdocs%2Fcurrent%2F&q=character+sets