From e4221a0a67a8f2249ea9c4a0777b682437987058 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 16 Aug 2010 17:28:55 +0200 Subject: fix encoding issues; add codetagify option to pygmentize Signed-off-by: Florian Pritz --- system/application/models/file_mod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/application') 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); -- cgit v1.2.3-24-g4f1b