From 2c7f9b4bd8b54c175d3e59072ce6a8d4b3d1cacf Mon Sep 17 00:00:00 2001 From: einhverfr Date: Fri, 18 May 2007 23:26:03 +0000 Subject: Adding utf-8 charset specifications to splash pages and by default to forms git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1211 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Form.pm | 5 ++--- locale/html/splash.html | 1 + locale/splash.html | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index d582601f..92fb7023 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -302,15 +302,14 @@ sub header { if ( $ENV{GATEWAY_INTERFACE} ) { + $self->{charset} ||= "utf-8"; if ( $self->{stylesheet} && ( -f "css/$self->{stylesheet}" ) ) { $stylesheet = qq|\n|; } - if ( $self->{charset} ) { - $charset = + $charset = qq|\n|; - } $self->{titlebar} = ( $self->{title} ) diff --git a/locale/html/splash.html b/locale/html/splash.html index 9ba76a09..5eed3837 100755 --- a/locale/html/splash.html +++ b/locale/html/splash.html @@ -6,6 +6,7 @@ LedgerSMB Splash page + diff --git a/locale/splash.html b/locale/splash.html index 18719b5c..77ac2686 100755 --- a/locale/splash.html +++ b/locale/splash.html @@ -6,6 +6,7 @@ LedgerSMB Splash page + -- cgit v1.2.3