You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by ch...@apache.org on 2009/12/10 13:59:21 UTC

svn commit: r889247 - /incubator/shindig/trunk/php/src/common/sample/BasicRemoteContentFetcher.php

Author: chabotc
Date: Thu Dec 10 12:59:20 2009
New Revision: 889247

URL: http://svn.apache.org/viewvc?rev=889247&view=rev
Log:
Re-enable the now seemingly working utf8 magic, it works with the labpixies message bundle that was previously causing errors now too

Modified:
    incubator/shindig/trunk/php/src/common/sample/BasicRemoteContentFetcher.php

Modified: incubator/shindig/trunk/php/src/common/sample/BasicRemoteContentFetcher.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/common/sample/BasicRemoteContentFetcher.php?rev=889247&r1=889246&r2=889247&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/common/sample/BasicRemoteContentFetcher.php (original)
+++ incubator/shindig/trunk/php/src/common/sample/BasicRemoteContentFetcher.php Thu Dec 10 12:59:20 2009
@@ -107,7 +107,7 @@
    			}
    		}
    		// the xml and json parsers get very upset if there are invalid UTF8 sequences in the string, by recoding it any bad chars will be filtered out
-      //$content = mb_convert_encoding($content, 'UTF-8', $charset);
+      $content = mb_convert_encoding($content, 'UTF-8', $charset);
   	}
     // on redirects and such we get multiple headers back from curl it seems, we really only want the last one
     while (substr($content, 0, strlen('HTTP')) == 'HTTP' && strpos($content, "\r\n\r\n") !== false) {