pygmentize icon indicating copy to clipboard operation
pygmentize copied to clipboard

gbk encoding issue

Open YinYongHongYork opened this issue 1 year ago • 0 comments

  • Python 3.8.1
  • pygmentize 2.18.0
  • SyntaxHighlight GeSHi of mediawiki

The error log is as bellowing:

[2f2e7be69d67f92ce2e4c8b3] /markyin/index.php/Test MediaWiki\SyntaxHighlight\PygmentsException from line 87 of C:\xampp\htdocs\markyin\extensions\SyntaxHighlight_GeSHi\includes\Pygmentize.php: *** Error while highlighting: UnicodeEncodeError: 'gbk' codec can't encode character '\xe4' in position 61: illegal multibyte sequence (file "c:\program files\python38\lib\site-packages\pygments\cmdline.py", line 188, in main_inner) *** If this is a bug you want to report, please rerun with -v.

YinYongHongYork avatar Sep 08 '24 08:09 YinYongHongYork