capynet / PHPygments

PHP connector for Pygments
10 stars 3 forks source link

utf encode #2

Open amouhzi opened 10 years ago

amouhzi commented 10 years ago

The UTF8 encode is not needeed.

You should remove it from the code generator.

capynet commented 10 years ago

Do you mean in bind.py? I've been forced to do it since without it, in some edge cases codification gets crazy.

amouhzi commented 10 years ago

No, not in bind.py. But in the php file PHPygments::render(). It dosn't work for me until I changed the line: 59:

return array( "code" => implode("\n", $output), "styles" => "styles/" . $style . ".css" );