View Issue Details

IDProjectCategoryView StatusLast Update
0020811mantisbtfeaturepublic2016-05-16 05:09
Reportergdureuil Assigned Toatrol  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version1.2.19 
Summary0020811: Problem with accentuated characters in description field
Description

Hello.

When posting a bug report (language is french), there is a problem with special characters with accents (à, é, ù, ç, ...). They are stored in database as if UTF-8 had been converted to ISO-8859-1 and a display problem of these characters happens.

This happens only in initial bug report in description field. When adding notes, these characters are added properly. This happens on every bug report.

Here is info on install of MantisBT.

Apache2.4
MySQL 5.0.11 (database for mantis is UTF-8)
PHP 5.6.14

TagsNo tags attached.

Activities

atrol

atrol

2016-04-15 07:08

developer   ~0052955

gdureuil,

I was not able to reproduce your problem with a fresh install of 1.2.19.

You should provide detailed step-by-step instructions to reproduce the issue; the following additional information may also be useful:

  • Relevant customizations (e.g. changes in config_inc.php, etc)
  • Installed plugins or custom functions ?
  • Was the MantisBT source code modified in any way ?
gdureuil

gdureuil

2016-04-15 07:29

reporter   ~0052956

Hello, thanks for taking time to help me.

As for what you asked :

  • No particular setting in config_inc.php.
  • No plugins or custom function.
  • No modification to source code.
gdureuil

gdureuil

2016-04-15 08:39

reporter   ~0052957

Just another test, when editing the bug report to correct, and adding again these special characters, it works.

The problem happens only on initial bug report.

atrol

atrol

2016-04-15 08:55

developer   ~0052958

Are you able to reproduce this at http://www.atrol.de/mantisbt-1.2.19 ?

gdureuil

gdureuil

2016-04-15 09:05

reporter   ~0052959

I just created an account and submited (id 0000199) and could not reproduce problem.

atrol

atrol

2016-04-15 09:27

developer   ~0052960

Do you see this just in "Description" field or also in "Steps To Reproduce" and/or "Additional Information"?

gdureuil

gdureuil

2016-04-15 09:33

reporter   ~0052961

Just tested and the problem happens on title, description, steps to reproduce, and additionnal information.

atrol

atrol

2016-04-15 09:58

developer   ~0052962

No time for a deeper look, just a guess.
Could you try if changing this line of code in file core/gpc_api.php around line 116 from
return str_replace( "\0", '', $t_result );
to
return $t_result;
fixes the issue?

gdureuil

gdureuil

2016-04-15 10:04

reporter   ~0052963

Tested this modification and still having the problem.

(reverting the modification)

atrol

atrol

2016-04-24 06:27

developer   ~0053013

Are you able to provide step-by-step (starting with installation) instructions to reproduce the issue?
If not, I will set this issue to resolved/unable to reproduce.

atrol

atrol

2016-05-04 17:57

developer   ~0053066

gdureuil,

You did not provide any feedback; I am therefore resolving this issue as "no change required".

Feel free to reopen the issue at a later time and provide the requested information.