Revision: 6853
Author: cosoleto
Date: 2009-05-07 13:03:59 +0000 (Thu, 07 May 2009)
Log Message:
-----------
config: added to textfile_encoding documentation mention of 'utf-8-sig'
(variant of UTF-8 used on Microsoft Windows with BOM) and link to list of
available codecs supported.
Modified Paths:
--------------
trunk/pywikipedia/config.py
Modified: trunk/pywikipedia/config.py
===================================================================
--- trunk/pywikipedia/config.py 2009-05-07 09:54:28 UTC (rev 6852)
+++ trunk/pywikipedia/config.py 2009-05-07 13:03:59 UTC (rev 6853)
@@ -124,7 +124,10 @@
#we get "StdioOnnaStick instance has no attribute 'encoding'"
console_encoding = None
-# The encoding in which textfiles are stored, which contain lists of page
titles.
+# The encoding in which textfiles are stored, which contain lists of page
+# titles. The most used is: 'utf-8', 'utf-8-sig' recognizes BOM but it is
+# available on Python 2.5 or higher). For a complete list please see:
+# http://docs.python.org/library/codecs.html#standard-encodings
textfile_encoding = 'utf-8'
# tkinter isn't yet ready
_______________________________________________
Pywikipedia-svn mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-svn