We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 305534d commit 79c5e4cCopy full SHA for 79c5e4c
1 file changed
source/dbconnection.pas
@@ -2807,6 +2807,7 @@ procedure TPgConnection.SetActive(Value: Boolean);
2807
raise EDbError.Create(Error, LastErrorCode, ErrorHint);
2808
end;
2809
FActive := True;
2810
+ CharacterSet := 'UTF8';
2811
FServerDateTimeOnStartup := GetVar('SELECT ' + FSqlProvider.GetSql(qFuncNow));
2812
FServerVersionUntouched := GetVar('SELECT VERSION()');
2813
FConnectionStarted := GetTickCount64 div 1000;
@@ -4463,7 +4464,7 @@ procedure TMySQLConnection.SetCharacterSet(CharsetName: String);
4463
4464
procedure TPGConnection.SetCharacterSet(CharsetName: String);
4465
begin
4466
// See issue #22
- Query('SET CLIENT_ENCODING TO ' + EscapeString('UTF8'));
4467
+ Query('SET CLIENT_ENCODING TO ' + EscapeString(CharsetName));
4468
4469
4470
0 commit comments