summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authorchristopherm <christopherm@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-15 05:35:21 +0000
committerchristopherm <christopherm@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-15 05:35:21 +0000
commitfd1a950d2fc26ec83b7f32facae14e4f37021a76 (patch)
treead7a6349365e4b2a56caa3113b350d4219beffea /LedgerSMB
parente8c27acc29a1b899e24526c7962091face6b66e4 (diff)
removing choice for db encoding... utf-8 all the way baby!!
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@617 4979c152-3d1c-0410-bac9-87ea11338e46
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