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

SF.net SVN: ledger-smb: [670] trunk/LedgerSMB



Revision: 670
          http://svn.sourceforge.net/ledger-smb/?rev=670&view=rev
Author:   tetragon
Date:     2006-11-20 19:14:21 -0800 (Mon, 20 Nov 2006)

Log Message:
-----------
Switch over to sending UTF-8 instead of escapes

Modified Paths:
--------------
    trunk/LedgerSMB/Form.pm
    trunk/LedgerSMB/Locale.pm
    trunk/LedgerSMB/Sysconfig.pm

Modified: trunk/LedgerSMB/Form.pm
===================================================================
--- trunk/LedgerSMB/Form.pm	2006-11-21 02:49:59 UTC (rev 669)
+++ trunk/LedgerSMB/Form.pm	2006-11-21 03:14:21 UTC (rev 670)
@@ -273,7 +273,7 @@
 
 		$self->{titlebar} = ($self->{title}) ? "$self->{title} - $self->{titlebar}" : $self->{titlebar};
 
-		print qq|Content-Type: text/html\n\n
+		print qq|Content-Type: text/html; charset=utf-8\n\n
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
 		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
 <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">

Modified: trunk/LedgerSMB/Locale.pm
===================================================================
--- trunk/LedgerSMB/Locale.pm	2006-11-21 02:49:59 UTC (rev 669)
+++ trunk/LedgerSMB/Locale.pm	2006-11-21 03:14:21 UTC (rev 670)
@@ -27,7 +27,6 @@
 package LedgerSMB::Locale;
 use base 'Locale::Maketext';
 use Locale::Maketext::Lexicon;
-use HTML::Entities;
 use Encode;
 
 Locale::Maketext::Lexicon->import({
@@ -40,7 +39,7 @@
 
 sub text {
 	my ($self, $text, @params) = @_;
-	return encode_entities($self->maketext($text, @params));
+	return $self->maketext($text, @params);
 }
 
 ##sub date {

Modified: trunk/LedgerSMB/Sysconfig.pm
===================================================================
--- trunk/LedgerSMB/Sysconfig.pm	2006-11-21 02:49:59 UTC (rev 669)
+++ trunk/LedgerSMB/Sysconfig.pm	2006-11-21 03:14:21 UTC (rev 670)
@@ -8,6 +8,8 @@
 use Config::Std;
 use DBI qw(:sql_types); 
 
+binmode STDOUT, ':utf8';
+
 # For Win32, change $pathsep to ';';
 $pathsep=':';
 


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