python-redmine icon indicating copy to clipboard operation
python-redmine copied to clipboard

???????? for Russian text

Open rttariverdi67 opened this issue 1 year ago • 5 comments

hi, any help?

I couldn't find a solution to my issue.

issues.export("csv", savepath=save_path, columns="all", filename="issues.csv")

gives 9469,SDK,Feature,"",Closed,Normal,??????????? ???????? ?????? SDK

instead of 9469,SDK,Feature,"",Closed,Normal,Исправление релизных сборок SDK

rttariverdi67 avatar May 15 '24 14:05 rttariverdi67

Hi @rttariverdi67

Python-Redmine uses UTF-8 encoding for the export by default, you can also control it using the encoding param in the export method, i.e. issues.export("csv", savepath=save_path, columns="all", filename="issues.csv", encoding="UTF-8"), but I suspect that the problem is most likely lays on the Redmine side, because Python-Redmine just downloads the CSV file that is formed in Redmine.

maxtepkeev avatar May 15 '24 16:05 maxtepkeev

yes, I already tried this param but the result was the same.

rttariverdi67 avatar May 15 '24 16:05 rttariverdi67

You can try your code on public Redmine instance here http://demo.redmineup.com (just edit a few issues to have a Russian or whatever symbols other than latin) and see if it works here (it will work). This way you will be sure that the problem is in specific Redmine instance you're using.

maxtepkeev avatar May 15 '24 17:05 maxtepkeev

indeed you are right. do you have any suggestions on tackling this issue?!

rttariverdi67 avatar May 19 '24 16:05 rttariverdi67

As usual when weird things happen I would start with 2 things:

  1. Disable all 3rd party plugins and test the export, if it works fine - enable plugins one by one to see which one does that
  2. Try to upgrade to latest Redmine

If those 2 doesn't help - search their forum and perhaps create an issue

maxtepkeev avatar May 21 '24 09:05 maxtepkeev

Closing this due to inactivity.

maxtepkeev avatar Jul 06 '24 09:07 maxtepkeev