[kde-services-devel] r520 - trunk/hotstuff/src

josef at new.kstuff.org josef at new.kstuff.org
Fri Aug 14 21:39:24 CEST 2009


Author: josef
Date: 2009-08-14 21:39:23 +0200 (Fri, 14 Aug 2009)
New Revision: 520

Modified:
   trunk/hotstuff/src/hotstuff-stuff
Log:
- enforce correct database encoding, Perl's DBI doesn't get this automatically
- now umlauts show up correctly in the feeds



Modified: trunk/hotstuff/src/hotstuff-stuff
===================================================================
--- trunk/hotstuff/src/hotstuff-stuff	2009-08-12 09:19:27 UTC (rev 519)
+++ trunk/hotstuff/src/hotstuff-stuff	2009-08-14 19:39:23 UTC (rev 520)
@@ -43,6 +43,8 @@
 my $conn = DBI->connect("DBI:Pg:host=$dbhost;port=$dbport;dbname=$dbname;user=$dbuser;password=$dbpass");
 $conn || die DBI::errstr;
 
+$conn->{pg_enable_utf8} = 1;
+
 my $dbquery = "SELECT name, category, author, licence, rating, downloads, version, " .
 	"release, releasedate, email, webpage, id, " .
 	"meta_ref " .
@@ -266,7 +268,7 @@
 
 	if($format eq "knewstuff"){
 		$writer->startTag("stuff", "type" => $category);
-	elsif($format eq "ghns-experimental"){
+	}elsif($format eq "ghns-experimental"){
 		$writer->startTag("stuff", "category" => $category, "id" => $entryid);
 	}else{
 		$writer->startTag("stuff", "category" => $category);



More information about the kde-services-devel mailing list