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 9fc551d commit 597da7dCopy full SHA for 597da7d
1 file changed
source/dbconnection.pas
@@ -2935,6 +2935,7 @@ procedure TPgConnection.SetActive(Value: Boolean);
2935
raise EDbError.Create(Error, LastErrorCode, ErrorHint);
2936
end;
2937
FActive := True;
2938
+ CharacterSet := 'UTF8';
2939
FServerDateTimeOnStartup := GetVar('SELECT ' + FSqlProvider.GetSql(qFuncNow));
2940
FServerVersionUntouched := GetVar('SELECT VERSION()');
2941
FConnectionStarted := GetTickCount div 1000;
@@ -4610,7 +4611,7 @@ procedure TMySQLConnection.SetCharacterSet(CharsetName: String);
4610
4611
procedure TPGConnection.SetCharacterSet(CharsetName: String);
4612
begin
4613
// See issue #22
- Query('SET CLIENT_ENCODING TO ' + EscapeString('UTF8'));
4614
+ Query('SET CLIENT_ENCODING TO ' + EscapeString(CharsetName));
4615
4616
4617
0 commit comments