summaryrefslogtreecommitdiff
path: root/pygments/formatters/other.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/formatters/other.py')
-rw-r--r--pygments/formatters/other.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/formatters/other.py b/pygments/formatters/other.py
index 6100f70b..ea8138c7 100644
--- a/pygments/formatters/other.py
+++ b/pygments/formatters/other.py
@@ -64,6 +64,7 @@ class RawTokenFormatter(Formatter):
Formatter.__init__(self, **options)
# We ignore self.encoding if it is set, since it gets set for lexer
# and formatter if given with -Oencoding on the command line.
+ # The RawTokenFormatter outputs only ASCII. Override here.
self.encoding = 'ascii' # let pygments.format() do the right thing
self.compress = get_choice_opt(options, 'compress',
['', 'none', 'gz', 'bz2'], '')