[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[4006] branches/1.3/LedgerSMB



Revision: 4006
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4006&view=rev
Author:   einhverfr
Date:     2011-11-15 08:50:04 +0000 (Tue, 15 Nov 2011)
Log Message:
-----------
UTF8 issues corrected with HTML templates.

Modified Paths:
--------------
    branches/1.3/LedgerSMB/Template/HTML.pm
    branches/1.3/LedgerSMB/Template.pm

Modified: branches/1.3/LedgerSMB/Template/HTML.pm
===================================================================
--- branches/1.3/LedgerSMB/Template/HTML.pm	2011-11-14 23:23:38 UTC (rev 4005)
+++ branches/1.3/LedgerSMB/Template/HTML.pm	2011-11-15 08:50:04 UTC (rev 4006)
@@ -137,7 +137,7 @@
 		$source, 
 		{%$cleanvars, %$LedgerSMB::Template::TTI18N::ttfuncs,
 			'escape' => \&preprocess},
-		$output, binmode => ':utf8')) {
+		$output, {binmode => ':utf8'})) {
 		throw Error::Simple $template->error();
 	}
 	$parent->{mimetype} = 'text/html';

Modified: branches/1.3/LedgerSMB/Template.pm
===================================================================
--- branches/1.3/LedgerSMB/Template.pm	2011-11-14 23:23:38 UTC (rev 4005)
+++ branches/1.3/LedgerSMB/Template.pm	2011-11-15 08:50:04 UTC (rev 4006)
@@ -327,6 +327,7 @@
 	if (!defined $data and defined $self->{rendered}){
 		$data = "";
 		open (DATA, '<', $self->{rendered});
+                binmode DATA, ':utf8';
 		while (my $line = <DATA>){
 			$data .= $line;
 		}

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.