Skip to content

Instantly share code, notes, and snippets.

@daniele-pecora
Last active November 13, 2015 09:33
Show Gist options
  • Save daniele-pecora/9383ee242c26bafac2b5 to your computer and use it in GitHub Desktop.
Save daniele-pecora/9383ee242c26bafac2b5 to your computer and use it in GitHub Desktop.
InitDB Arguments missing to make german umlauts work
public class PostgresProcess extends AbstractPGProcess<PostgresExecutable, PostgresProcess> {
...
@Override
protected void onBeforeProcess(IRuntimeConfig runtimeConfig)
throws IOException {
super.onBeforeProcess(runtimeConfig);
PostgresConfig config = getConfig();
runCmd(config, InitDb, "Success. You can now start the database server using", 1000,
/**
* Need this arguments here
*/
new String[]{"-E", "'UTF-8'", "--lc-collate='de_DE.UTF-8'", "--lc-ctype=locale='de_DE.UTF-8'"}
);
}
...
}
@daniele-pecora
Copy link
Author

@smecsia @vbauer
Hi,
I appreciate your work a lot.
Do you think it will be ever possible to pass some arguments to the InitDb process?
We need them to make german umlauts work.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment