Page MenuHomePhabricator

Encoding issue with jsub
Closed, DuplicatePublic

Description

I have a python script (based on pywikibot) which works fine when called from bash terminal. The call include parameters that contain Unicode strings, and the output also contains Unicode strings and will result in editing a page whose title contains Unicode characters as well. I put the call in a bash script and ran it from terminal and that also worked fine.

Then I called the bash script using jsub -once. The result was that the bot edited the page [[w:fa:ویکی‌پدیا:گزارش دیتابیس/مقاله‌های کتاب]] instead of the expected [[w:fa:ویکی‌پدیا:گزارش دیتابیس/مقاله‌های کتاب]].

Somehow, running the script through jsub will result in encoding issues. The python script can be found here, and the bash script is attached.

Event Timeline

Huji raised the priority of this task from to Needs Triage.
Huji updated the task description. (Show Details)
Huji added a project: Toolforge.
Huji added subscribers: Huji, Ladsgroup.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Huji set Security to None.