diff options
Diffstat (limited to 'application')
-rw-r--r-- | application/controllers/file.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php index f900419cb..7c5918e07 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -179,7 +179,7 @@ class File extends CI_Controller { // generate line numbers (links) passthru('perl -ne \'print "<a href=\"#n$.\" id=\"n$.\">$.</a>\n"\' '.escapeshellarg($file)); echo '</pre></td><td class="code">'."\n"; - passthru('pygmentize -F codetagify -O encoding=utf-8 -l '.escapeshellarg($mode).' -f html '.escapeshellarg($file)); + passthru('pygmentize -F codetagify -O encoding=guess,outencoding=utf8 -l '.escapeshellarg($mode).' -f html '.escapeshellarg($file)); } $cached = ob_get_contents(); ob_end_clean(); |