Index: trunk/phase3/includes/DjVuImage.php |
— | — | @@ -250,6 +250,7 @@ |
251 | 251 | $txt = wfShellExec( $cmd, $retval ); |
252 | 252 | wfProfileOut( 'djvutxt' ); |
253 | 253 | if( $retval == 0) { |
| 254 | + $txt = utf8_encode($txt); |
254 | 255 | $txt = htmlspecialchars($txt); |
255 | 256 | $txt = preg_replace( "/\((page\s[\d-]*\s[\d-]*\s[\d-]*\s[\d-]*\s*\"([^<]*?)\"\s*|)\)/s", "<PAGE value=\"$2\" />", $txt ); |
256 | 257 | $txt = "<DjVuTxt>\n<HEAD></HEAD>\n<BODY>\n" . $txt . "</BODY>\n</DjVuTxt>\n"; |