summaryrefslogtreecommitdiff
path: root/pygments/formatters
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-11-06 13:18:19 +0100
committerGeorg Brandl <georg@python.org>2014-11-06 13:18:19 +0100
commit12480ae2b2d4b8865eeb90df89099384eebdcade (patch)
tree818573e86d101542b1f7536c313443d5baf77dd5 /pygments/formatters
parent0e1d32ecd9de7b352c83bc2af031d7af97042b24 (diff)
downloadpygments-git-12480ae2b2d4b8865eeb90df89099384eebdcade.tar.gz
Default lexer encoding is now "guess", i.e. UTF-8 / Locale / Latin1 is
tried in that order.
Diffstat (limited to 'pygments/formatters')
-rw-r--r--pygments/formatters/latex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/formatters/latex.py b/pygments/formatters/latex.py
index 4b22215f..7a4eeca8 100644
--- a/pygments/formatters/latex.py
+++ b/pygments/formatters/latex.py
@@ -417,7 +417,7 @@ class LatexFormatter(Formatter):
dict(docclass = self.docclass,
preamble = self.preamble,
title = self.title,
- encoding = self.encoding or 'latin1',
+ encoding = self.encoding or 'utf8',
styledefs = self.get_style_defs(),
code = outfile.getvalue()))