Skip to content

Wrong value-display of utf-8 characters like Ö Ä Ü ß ö ä ü ... in the report-table #100

Open
@greq7

Description

@greq7

the value-display of the characters Ö Ä Ü ß ö ä ü ...

looks that way in the report-table:

äöü ��� & �

(In the mysql-table all tables/values are in utf-8)

solve the problem by editing the file:
=> php-reports / lib / PhpReports / ReportValue.php
=> line ~71

old:

            elseif($type === 'string') {
                    return utf8_encode($value);
            }

new:

    elseif($type === 'string') {            
        if (mb_check_encoding($value, 'UTF-8')) return $value = utf8_encode($value);    
        else return $value;
    }

after that change i get the a correct display of that values:
äöü ÄÜÖ & ß

Maybe the changed lines should be checked into the trunk or the problem
should be solved an other way.

regards,
greq

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions