Hi, I just started writing a new Python script called "Tiny Jira Exporter" (see https://github.com/bks07/tiny-jira-exporter) and am having trouble finding an answer.
My code looks like this:
self._issues = self._jira.search_issues(jql_query, maxResults=max_results)
...
for issue in self._issues:
summary = issue.fields.summary
However, whenever the summary contains a special character like German umlauts, things get complicated.
I also tried the following:
character_set = chardet.detect(summary.encode())
encoded_string = summary.encode(character_set["encoding"])
return_string = encoded_string.decode("utf-8")
And also this:
character_set = chardet.detect(summary.encode())
encoded_string = summary.encode(character_set["encoding"])
return_string = bytes(value,character_set["encoding"]).decode("utf-8")
However, it's not working and I cannot find an answer elsewhere.
Best, Boris