To set charset in firebird should be in database creation
CREATE DATABASE <database>
USER <username>
PASSWORD <password>
PAGE_SIZE <pagesize>
DEFAULT CHARACTER SET <charset>
See an example below:
CREATE DATABASE localhost:meter
USER SYSDBA
PASSWORD masterkey
PAGE_SIZE 4096
DEFAULT CHARACTER SET UTF8;
To change an existing charset
ALTER CHARACTER SET charset SET DEFAULT COLLATION collation
See the example:
alter character set utf8 set default collation unicode_ci_ai
If you use SET DEFAULT COLLATION
on the default character set of the database, you have effectively defined the default collation for the database.
If you use SET DEFAULT COLLATION
in the connection character set, the string constants will be interpreted according to the new default collation. In most situations, this will not make any difference, but comparisons can have another result if the grouping changes.