John Vandenberg has uploaded a new change for review.
https://gerrit.wikimedia.org/r/204018
Change subject: Default encoding on win32 is problematic
......................................................................
Default encoding on win32 is problematic
Change-Id: Id8a6c7b9b9ea29c0b92c8eb14f047bd792e20e24
---
M pywikibot/tools/__init__.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/18/204018/1
diff --git a/pywikibot/tools/__init__.py b/pywikibot/tools/__init__.py
index 67e0087..6df1659 100644
--- a/pywikibot/tools/__init__.py
+++ b/pywikibot/tools/__init__.py
@@ -418,7 +418,7 @@
"""Return an encoding even if it's originally None."""
if encoding is None:
if sys.platform == 'win32':
- return 'cp850'
+ return 'utf8'
else:
return 'iso-8859-1'
else:
--
To view, visit https://gerrit.wikimedia.org/r/204018
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id8a6c7b9b9ea29c0b92c8eb14f047bd792e20e24
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits