Skip to content

Commit 5e96fb5

Browse files
authored
fix: explicitly set encoding to UTF8 on embedded postgres (#16604)
Fixes #16228. I've verified that the setting does not affect existing databases.
1 parent 0f3858e commit 5e96fb5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2022,6 +2022,7 @@ func startBuiltinPostgres(ctx context.Context, cfg config.Root, logger slog.Logg
20222022
Username("coder").
20232023
Password(pgPassword).
20242024
Database("coder").
2025+
Encoding("UTF8").
20252026
Port(uint32(pgPort)).
20262027
Logger(stdlibLogger.Writer()),
20272028
)

0 commit comments

Comments
 (0)