Last active
November 13, 2015 09:33
-
-
Save daniele-pecora/9383ee242c26bafac2b5 to your computer and use it in GitHub Desktop.
InitDB Arguments missing to make german umlauts work
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'"} | |
); | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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