[pLog-svn] r6881 - in plugins/branches/lifetype-1.2/mtexport: . class/action

pwestbro at devel.lifetype.net pwestbro at devel.lifetype.net
Mon May 4 19:14:47 EDT 2009


Author: pwestbro
Date: 2009-05-04 19:14:47 -0400 (Mon, 04 May 2009)
New Revision: 6881

Modified:
   plugins/branches/lifetype-1.2/mtexport/class/action/adminmtexportpluginexportblogaction.class.php
   plugins/branches/lifetype-1.2/mtexport/pluginmtexport.class.php
Log:
Better handle double byte characters in comments/articles


Modified: plugins/branches/lifetype-1.2/mtexport/class/action/adminmtexportpluginexportblogaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/mtexport/class/action/adminmtexportpluginexportblogaction.class.php	2009-05-04 09:49:16 UTC (rev 6880)
+++ plugins/branches/lifetype-1.2/mtexport/class/action/adminmtexportpluginexportblogaction.class.php	2009-05-04 23:14:47 UTC (rev 6881)
@@ -40,6 +40,7 @@
 
 
   function htmlButTags($str) {
+
     // Take all the html entities
     $caracteres = get_html_translation_table(HTML_ENTITIES);
     // Find out the "tags" entities
@@ -51,7 +52,9 @@
     // And that's it!
     // oo now amps
     $str = preg_replace("/&(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,3};)/","&" , $str);
-       
+
+    $str = mb_encode_numericentity ($str, array (0x0080, 0xffff, 0, 0xffff), "ISO-8859-1");
+    
     return $str;
   } 
 

Modified: plugins/branches/lifetype-1.2/mtexport/pluginmtexport.class.php
===================================================================
--- plugins/branches/lifetype-1.2/mtexport/pluginmtexport.class.php	2009-05-04 09:49:16 UTC (rev 6880)
+++ plugins/branches/lifetype-1.2/mtexport/pluginmtexport.class.php	2009-05-04 23:14:47 UTC (rev 6881)
@@ -17,7 +17,7 @@
     $this->desc = "Exports a blog to a <a href='http://www.sixapart.com/movabletype/docs/mtimport'>Movable Type Import Format</a> file.";
     $this->author = "Paul Westbrook";
     $this->locales = Array( "en_UK" );
-    $this->version = "20090504";
+    $this->version = "200905041";
 
     if( $source == "admin" )
       $this->initAdmin();



More information about the pLog-svn mailing list