summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/User.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/LedgerSMB/User.pm b/LedgerSMB/User.pm
index 5e06a2e0..e28af072 100755
--- a/LedgerSMB/User.pm
+++ b/LedgerSMB/User.pm
@@ -369,11 +369,8 @@ sub dbsources {
sub dbcreate {
my ($self, $form) = @_;
- my %dbcreate = ( 'Pg' => qq|CREATE DATABASE "$form->{db}"| );
+ my %dbcreate = ( 'Pg' => qq|CREATE DATABASE "$form->{db}" WITH ENCODING = 'UNICODE'| );
- $dbcreate{Pg} .= " WITH ENCODING = '$form->{encoding}'"
- if $form->{encoding};
-
$form->{sid} = $form->{dbdefault};
&dbconnect_vars($form, $form->{dbdefault});
# The below line connects to Template1 or another template file in order