Print reports (doc) encoding problem in version 1.3.0

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
eortiz
Posts: 4
Joined: 28 Sep 2016, 08:29

Print reports (doc) encoding problem in version 1.3.0

Post 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.
---------------------------
Mantis: 1.3.0
PHP: 5.4.39
SQL: MySQL 5.5.41
OS: Linux Debian 7
eortiz
Posts: 4
Joined: 28 Sep 2016, 08:29

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

Post 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!
---------------------------
Mantis: 1.3.0
PHP: 5.4.39
SQL: MySQL 5.5.41
OS: Linux Debian 7
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post by atrol »

Please use Search before posting and read the Manual
eortiz
Posts: 4
Joined: 28 Sep 2016, 08:29

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

Post 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
---------------------------
Mantis: 1.3.0
PHP: 5.4.39
SQL: MySQL 5.5.41
OS: Linux Debian 7
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post 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
Please use Search before posting and read the Manual
Post Reply