Bugs item #1803037, was opened at 2007-09-26 13:22 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1803037...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: windows console encoding problem
Initial Comment: there is a code in wikipedia.py:
if sys.platform=='win32': # Windows gives parameters encoded as windows-1252, # regardless of console encoding arg = unicode(arg, 'windows-1252')
It seems to fix console bug.
but unfortunately, for example if you use cp949 as console encoding, then you will get all non-ascii text cracked. it is because Windows gives gives parameters encoded as cp949, not cp1252.
so I've used a workaround patch from if sys.platform=='win32': to if sys.platform=='win32' and config.console_encoding != 'cp949': to prevent encoding error. I guess some of other non-latin codepages have same trouble but I'm not sure.
-- [[:ko:User:Klutzy]]
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody) Date: 2007-09-26 14:07
Message: Logged In: NO
By cracked, User:Klutzy means garbled.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1803037...
pywikipedia-l@lists.wikimedia.org