diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-08-16 17:28:55 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2010-08-16 17:28:55 +0200 |
commit | e4221a0a67a8f2249ea9c4a0777b682437987058 (patch) | |
tree | 30c1a55e8e1bab2aeeb0149746cace00f06fbf77 /system/application/models/file_mod.php | |
parent | bf061651c165f73b275bfef778471837307239fd (diff) |
fix encoding issues; add codetagify option to pygmentize
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system/application/models/file_mod.php')
-rw-r--r-- | system/application/models/file_mod.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php index cd45f335c..7999c5c8c 100644 --- a/system/application/models/file_mod.php +++ b/system/application/models/file_mod.php @@ -201,7 +201,7 @@ class File_mod extends Model { $this->load->library("MemcacheLibrary"); if (! $cached = $this->memcachelibrary->get($filedata['hash'].'_'.$mode)) { ob_start(); - passthru('/usr/bin/pygmentize -l '.$mode.' -f html '.escapeshellarg($file)); + passthru('/usr/bin/pygmentize -O encoding=utf8 -F codetagify -l '.$mode.' -f html '.escapeshellarg($file)); $cached = ob_get_contents(); ob_end_clean(); $this->memcachelibrary->set($filedata['hash'].'_'.$mode, $cached, 100); |