Page 1 of 1

Print reports (doc) encoding problem in version 1.3.0

Posted: 28 Sep 2016, 11:15
by eortiz
Hi all,

We recently upgraded our Mantis instance from version 1.2.14 to version 1.3.0. After a couple of weeks we realized that on Print Reports page (print_all_bug_page.php), when we export issues to a word document encoding of some characters is wrong (latin characters like accents for example, eg: á). It happens on fieds retrieved from DB (notes, description, etc) but also on localized field names (eg: Categoría -- Category).

Exporting to html format works as expected and shows all characters correctly encoded and in resulting html, headers show charset=utf-8.

We tested prior version 1.2.14 and .doc export works fine. Is there any configuration setting to set encoding for this? Is it some kind of regression?

I took a look at print_all_bug_page_word.php to see if there were differences relating to encoding and didn't see anything to mention.

Any help would be appreciated, thanks in advance.

Re: Print reports (doc) encoding problem in version 1.3.0

Posted: 23 Jan 2017, 11:04
by eortiz
We still have no clue on how to fix this after a couple of months. Does anybody know at least of a workaround for this or anything we could try?

Thank you very much!

Re: Print reports (doc) encoding problem in version 1.3.0

Posted: 23 Jan 2017, 19:55
by atrol

Re: Print reports (doc) encoding problem in version 1.3.0

Posted: 24 Jan 2017, 17:25
by eortiz
atrol wrote:Try the patch attached to http://www.mantisbt.org/bugs/view.php?id=22103
That did the trick, thank your very much! I hope this patch gets to the master branch so we won´t have to repatch after upgrade.

Thanks again

Re: Print reports (doc) encoding problem in version 1.3.0

Posted: 09 May 2017, 06:44
by atrol
eortiz wrote:I hope this patch gets to the master branch so we won´t have to repatch after upgrade.
It's part of standard Mantis starting with 1.3.6 and 2.2.1 http://www.mantisbt.org/bugs/view.php?id=21798