Attaching a patch.
Anton
diff -Nru sphinx-1.1.2+dfsg/debian/patches/fix_unicode_convertion.diff sphinx-1.1.2+dfsg/debian/patches/fix_unicode_convertion.diff --- sphinx-1.1.2+dfsg/debian/patches/fix_unicode_convertion.diff 1970-01-01 01:00:00.000000000 +0100 +++ sphinx-1.1.2+dfsg/debian/patches/fix_unicode_convertion.diff 2012-02-22 09:22:51.000000000 +0100 @@ -0,0 +1,24 @@ +Description: Fixes encoding problem of the highlighted block. +Origin: https://bitbucket.org/birkenfeld/sphinx/issue/144/encoding-problem-with-pygmentsbridge-for +Bug-Debian: http://bugs.debian.org/651220 +Author: Anton Gladky <gladky.an...@gmail.com> +Last-Update: 2012-02-21 + +--- a/sphinx/highlighting.py ++++ b/sphinx/highlighting.py +@@ -108,6 +108,7 @@ + return '<pre>' + cgi.escape(source) + '</pre>\n' + else: + # first, escape highlighting characters like Pygments does ++ source = unicode(source) + source = source.translate(escape_hl_chars) + # then, escape all characters nonrepresentable in LaTeX + source = source.translate(tex_hl_escape_map_new) +@@ -202,6 +203,7 @@ + try: + formatter = self.get_formatter(**kwargs) + hlsource = highlight(source, lexer, formatter) ++ hlsource = unicode(hlsource) + if self.dest == 'html': + return hlsource + else: diff -Nru sphinx-1.1.2+dfsg/debian/patches/series sphinx-1.1.2+dfsg/debian/patches/series --- sphinx-1.1.2+dfsg/debian/patches/series 2012-02-12 23:44:32.000000000 +0100 +++ sphinx-1.1.2+dfsg/debian/patches/series 2012-02-22 09:15:00.000000000 +0100 @@ -5,3 +5,4 @@ sphinxcontrib_namespace.diff python3_test_syspath.diff python3_test_build_dir.diff +fix_unicode_convertion.diff