From fd1a950d2fc26ec83b7f32facae14e4f37021a76 Mon Sep 17 00:00:00 2001 From: christopherm Date: Wed, 15 Nov 2006 05:35:21 +0000 Subject: 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 --- LedgerSMB/User.pm | 5 +---- bin/admin.pl | 36 ------------------------------------ 2 files changed, 1 insertion(+), 40 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 diff --git a/bin/admin.pl b/bin/admin.pl index 109f9a9d..0fe64cc5 100755 --- a/bin/admin.pl +++ b/bin/admin.pl @@ -47,7 +47,6 @@ $locale = LedgerSMB::Locale->get_handle(${LedgerSMB::Sysconfig::language}) or $form->error(__FILE__.':'.__LINE__.': '."Locale not loaded: $!\n"); $locale->encoding('UTF-8'); $form->{charset} = 'UTF-8'; -#$form->{charset} = $locale->encoding; eval { require DBI; }; $form->error(__FILE__.':'.__LINE__.': '.$locale->text('DBI not installed!')) if ($@); @@ -1096,37 +1095,6 @@ sub create_dataset { # add Default at beginning unshift @charts, qq|Default|; - $selectencoding = qq| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |; - $form->{title} = "LedgerSMB ".$locale->text('Accounting') ." ".$locale->text('Database Administration') ." / ".$locale->text('Create Dataset'); @@ -1156,10 +1124,6 @@ sub create_dataset { |.$locale->text('Create Dataset').qq| - - |.$locale->text('Multibyte Encoding').qq| - - |.$locale->text('Create Chart of Accounts').qq| -- cgit v1.2.3