This is an error that is showing up in Eranbot for the Arabic language which was recently enabled with T271823.
Stack trace:
Traceback (most recent call last): File "/data/project/eranbot/gitPlagiabot/plagiabot/plagiabot.py", line 861, in <module> main() File "/data/project/eranbot/gitPlagiabot/plagiabot/plagiabot.py", line 856, in main bot.run() File "/data/project/eranbot/gitPlagiabot/plagiabot/plagiabot.py", line 617, in run self.report_uploads() # report checked edits File "/data/project/eranbot/gitPlagiabot/plagiabot/plagiabot.py", line 510, in report_uploads self.report_log.add_report(rep['new'], rep['diff_date'], rep['title_no_ns'], rep['ns'], rep['report_id'], rep['source']) File "/mnt/nfs/labstore-secondary-tools-project/eranbot/gitPlagiabot/plagiabot/report_logger.py", line 90, in add_report report)) File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 207, in execute args = tuple(map(db.literal, args)) File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 304, in literal s = self.escape(o, self.encoders) File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 222, in unicode_literal return db.literal(u.encode(unicode_literal.charset)) UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-3: ordinal not in range(256)
Our database encoding is set to utf8mb4 which I believe should work with Arabic.