diff options
Diffstat (limited to 'pygments/formatters/other.py')
-rw-r--r-- | pygments/formatters/other.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/formatters/other.py b/pygments/formatters/other.py index 11e2566c..b3abe9da 100644 --- a/pygments/formatters/other.py +++ b/pygments/formatters/other.py @@ -62,7 +62,7 @@ class RawTokenFormatter(Formatter): lasttype = None lastval = u'' for ttype, value in tokensource: - value = value.encode(self.encoding) + value = repr(value) if ttype is lasttype: lastval += value else: |