Make MSCompoundFileReader::readFile platform-agnostic
[lhc/web/wiklou.git] / includes / libs / mime / MSCompoundFileReader.php
index aea0a02..8afaa38 100644 (file)
@@ -333,7 +333,7 @@ class MSCompoundFileReader {
                                continue;
                        }
 
                                continue;
                        }
 
-                       $name = iconv( 'UTF-16', 'UTF-8', substr( $entry['name_raw'], 0, $entry['name_length'] - 2 ) );
+                       $name = iconv( 'UTF-16LE', 'UTF-8', substr( $entry['name_raw'], 0, $entry['name_length'] - 2 ) );
 
                        $clsid = $this->decodeClsid( $entry['clsid'] );
                        if ( $type == self::TYPE_ROOT && isset( self::$mimesByClsid[$clsid] ) ) {
 
                        $clsid = $this->decodeClsid( $entry['clsid'] );
                        if ( $type == self::TYPE_ROOT && isset( self::$mimesByClsid[$clsid] ) ) {