Skip to content

Commit 09f2701

Browse files
FIX (postgresql): Use UTF-8 encoding for DB connection by default
1 parent cba8fdf commit 09f2701

File tree

1 file changed

+1
-1
lines changed
  • backend/internal/features/databases/databases/postgresql

1 file changed

+1
-1
lines changed

backend/internal/features/databases/databases/postgresql/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ func buildConnectionStringForDB(p *PostgresqlDatabase, dbName string, password s
594594
}
595595

596596
return fmt.Sprintf(
597-
"host=%s port=%d user=%s password=%s dbname=%s sslmode=%s default_query_exec_mode=simple_protocol standard_conforming_strings=on",
597+
"host=%s port=%d user=%s password=%s dbname=%s sslmode=%s default_query_exec_mode=simple_protocol standard_conforming_strings=on client_encoding=UTF8",
598598
p.Host,
599599
p.Port,
600600
p.Username,

0 commit comments

Comments
 (0)