svn commit: r786 - trunk/mapbender/http/print/printPDF.conf

astrid_emde at osgeo.org astrid_emde at osgeo.org
Tue Oct 10 03:53:14 EDT 2006


Author: astrid_emde
Date: 2006-10-10 07:53:13+0000
New Revision: 786

Modified:
   trunk/mapbender/http/print/printPDF.conf

Log:
if CHARSET utf8 the comments and wms- and layer-title are decoded

Modified: trunk/mapbender/http/print/printPDF.conf
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/print/printPDF.conf?view=diff&rev=786&p1=trunk/mapbender/http/print/printPDF.conf&p2=trunk/mapbender/http/print/printPDF.conf&r1=785&r2=786
==============================================================================
--- trunk/mapbender/http/print/printPDF.conf	(original)
+++ trunk/mapbender/http/print/printPDF.conf	2006-10-10 07:53:13+0000
@@ -38,6 +38,15 @@
 $unlink = true;
 
 # labeling
+if(CHARSET=="UTF-8"){ 
+	$new_comment1 = utf8_decode($_REQUEST["comment1"]);
+	$new_comment2 = utf8_decode($_REQUEST["comment2"]);
+}
+else{
+	$new_comment1 = $_REQUEST["comment1"];
+	$new_comment2 = $_REQUEST["comment2"];
+}
+
 $text1 = "Druckansicht";
 $text2 = "- Mapbender -";
 $text3 = "";
@@ -46,8 +55,9 @@
 
 $text6 = "Notizen:";
 $text7 = "";
-$text8 = $_REQUEST["comment1"];
-$text9 = $_REQUEST["comment2"];
+
+$text8 = $new_comment1;
+$text9 = $new_comment2;
 $text10 = "";
 
 




More information about the Mapbender_commits mailing list