kirre777
User
 Junior Boarder
| Posts: 6 |   | Karma: 0
|
Re:two Doc indexer problem - 2009/02/26 16:16
I found a way around the åäö problem. In admin.doc_index.php on line 413 add the bold characters (and dont forget that $outtext must have brackets):
function parseWord($userDoc) { $fileHandle = fopen($userDoc, "r"); $line = @fread($fileHandle, filesize($userDoc)); $lines = explode(chr(0x0D),$line); $outtext = ""; foreach($lines as $thisline) { $pos = strpos($thisline, chr(0x00)); if (($pos !== FALSE)||(strlen($thisline)==0)) { } else { $outtext .= $thisline." "; } } $outtext = preg_replace("/[^a-zA-Z0-9åäöÅÄÖs,.-nrt@/_()]/","",$outtext); return utf8_encode($outtext); }
|