Meno25 added a comment.

  In T281042#7037505 <https://phabricator.wikimedia.org/T281042#7037505>, @Xqt 
wrote:
  
  > Cannot reproduce it with this command line:
  >
  >   pwb replace -simulate -lang:ar Phnx Phoenix -page:"اللغة البونيقية"
  >
  > What are your sys Encodings:
  >
  >   >>> import sys
  >   >>> sys.stdin.encoding
  >   'utf-8'
  >   >>> sys.stdout.encoding
  >   'utf-8'
  >   >>> sys.stderr.encoding
  >   'utf-8'
  >   >>> 
  
  It is Windows-1256 <https://en.wikipedia.org/wiki/Windows-1256> under the 
native Windows cmd.exe <https://en.wikipedia.org/wiki/Cmd.exe>
  
  **Notes:**
  
  - Just today, I discovered a workaround for this bug, which is to use ConEmu 
Windows console as described in these steps 
<https://www.mediawiki.org/wiki/Manual:Pywikibot/Windows#Set_up_Unicode>.
  - Using the ConEmu console, the bot works correctly and edits the page 
<https://ar.wikipedia.org/w/index.php?diff=53617026> as expected (does not 
crash).

TASK DETAIL
  https://phabricator.wikimedia.org/T281042

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Meno25
Cc: Xqt, valhallasw, Aklapper, alaa, Meno25, pywikibot-bugs-list, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, binbot, Avicennasis, mys_721tx, jayvdb, 
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to