summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-05-18 15:18:26 +0200
committerGeorg Brandl <georg@python.org>2007-05-18 15:18:26 +0200
commit7147e68b6c439300520426baa84fb4cc48c98a83 (patch)
tree382d3b1556d92ecfbe726b427b400db28e1d9203 /docs
parent4823467bc0e5a3bb3c66a54b31bf8d1224f2322c (diff)
downloadpygments-git-7147e68b6c439300520426baa84fb4cc48c98a83.tar.gz
[svn] Make a sentence clearer.
Diffstat (limited to 'docs')
-rw-r--r--docs/src/unicode.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/src/unicode.txt b/docs/src/unicode.txt
index 53ff8494..8184e2b2 100644
--- a/docs/src/unicode.txt
+++ b/docs/src/unicode.txt
@@ -11,7 +11,7 @@ If you pass a lexer a string object (not unicode), it tries to decode the data
using this encoding.
You can override the encoding using the `encoding` lexer option. If you have the
`chardet`_ library installed and set the encoding to ``chardet`` if will ananlyse
-the text and fetch the best encoding automatically:
+the text and use the encoding it thinks is the right one automatically:
.. sourcecode:: python
@@ -34,7 +34,8 @@ source and the output stream does not accept Unicode written to it!**
This is the case for all regular files and for terminals.
Note: The Terminal formatter tries to be smart: if its output stream has an
-`encoding` attribute, it will encode any Unicode string with this encoding
+`encoding` attribute, and you haven't set the option,
+it will encode any Unicode string with this encoding
before writing it. This is the case for `sys.stdout`, for example. The other
formatters don't have that behavior.