Subject | Character set win1252 not installed |
---|---|
Author | Wolfgang Kluge |
Post date | 2012-07-31T15:27:13Z |
Good evening.
I will appreciate some help on how to install character set win1252.
My firebird installation is a fresh FB 2.5.1 installation with all
default values.
When creating a new database with the following code:
DB1.Connected := False;
DB1.DBParams.Clear;
DB1.DBParams.Add('USER ''SYSDBA'' PASSWORD ''masterkey''');
DB1.DBParams.Add( 'PAGE_SIZE 8192' );
DB1.DBParams.Add( 'DEFAULT CHARACTER SET ASCII' );
DB1.DBName := 'LocalHost:d:\temp\salesinventory.fdb';
DB1.SQLDialect := 3;
DB1.LibraryName := cDir + 'fbclient.dll'; // cDir is the directory
where the exe file for the creation is located
Try
DB1.CreateDatabase;
DB1.Connected := True;
Except
bError := True;
End;
When replacing
DB1.DBParams.Add( 'DEFAULT CHARACTER SET ASCII' );
with
DB1.DBParams.Add( 'DEFAULT CHARACTER SET WIN1252' );
fbintl.conf contains a WIN1252 section
The error message 'Character Set WIN1252 is not installed' is created
when using Firebird 2.5.1 but in Firebird 2.5.0 there is no problem with
the same code ( Firebird 2.5.0 was also installed with all defaults ).
Regards
Wolfgang Kluge
I will appreciate some help on how to install character set win1252.
My firebird installation is a fresh FB 2.5.1 installation with all
default values.
When creating a new database with the following code:
DB1.Connected := False;
DB1.DBParams.Clear;
DB1.DBParams.Add('USER ''SYSDBA'' PASSWORD ''masterkey''');
DB1.DBParams.Add( 'PAGE_SIZE 8192' );
DB1.DBParams.Add( 'DEFAULT CHARACTER SET ASCII' );
DB1.DBName := 'LocalHost:d:\temp\salesinventory.fdb';
DB1.SQLDialect := 3;
DB1.LibraryName := cDir + 'fbclient.dll'; // cDir is the directory
where the exe file for the creation is located
Try
DB1.CreateDatabase;
DB1.Connected := True;
Except
bError := True;
End;
When replacing
DB1.DBParams.Add( 'DEFAULT CHARACTER SET ASCII' );
with
DB1.DBParams.Add( 'DEFAULT CHARACTER SET WIN1252' );
fbintl.conf contains a WIN1252 section
The error message 'Character Set WIN1252 is not installed' is created
when using Firebird 2.5.1 but in Firebird 2.5.0 there is no problem with
the same code ( Firebird 2.5.0 was also installed with all defaults ).
Regards
Wolfgang Kluge