[fusion-commits] r1427 - trunk/MapGuide/php

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Jun 26 15:44:53 EDT 2008


Author: pagameba
Date: 2008-06-26 15:44:53 -0400 (Thu, 26 Jun 2008)
New Revision: 1427

Modified:
   trunk/MapGuide/php/Utilities.php
Log:
Re #83: add UTF-8 encoding to query results.

Modified: trunk/MapGuide/php/Utilities.php
===================================================================
--- trunk/MapGuide/php/Utilities.php	2008-06-26 15:58:25 UTC (rev 1426)
+++ trunk/MapGuide/php/Utilities.php	2008-06-26 19:44:53 UTC (rev 1427)
@@ -868,7 +868,7 @@
             $value =  GetPropertyValueFromFeatReader($featureReader,
                                                      $properties->$layerName->propertytypes[$j],
                                                      $propname);
-            $value = htmlentities($value);
+            $value = htmlentities($value, ENT_COMPAT, 'UTF-8');
             $value = addslashes($value);
             $value = preg_replace( "/\r?\n/", "<br>", $value );
             array_push($properties->$layerName->values[$properties->$layerName->numelements], $value);



More information about the fusion-commits mailing list