No output with iso8859-1 #2609

Closed
zfbot opened this Issue Sep 28, 2012 · 2 comments

Comments

Projects
None yet
2 participants

zfbot commented Sep 28, 2012

Jira Information

Original Issue:ZF2-584
Issue Type:Bug
Reporter:Marc
Created:09/25/12
Assignee:weierophinney
Components:Zend\Debug

Description

Tests:

    $array = array('lalaü' => utf8_decode('tütütüt'));

    \Zend\Debug\Debug::dump($array);

Output:


    var_dump($array);

Output:
array(1) {
["lalaü"]=>
string(7) "t�t�t�t"
}

I pulled iso8859-1 content out of our database and wanted to look at the array and got nothing. We have xdebug disabled and in the if (line 111)
$output = static::getEscaper()->escapeHtml($output);
sets output to empty.

zfbot commented Sep 28, 2012

This issue was ported from the ZF2 Jira Issue Tracker at
http://framework.zend.com/issues/browse/ZF2-584

Known GitHub users mentioned in the original message or comment:
@weierophinney

Member

Maks3w commented Nov 3, 2012

Set a escaper with the proper encoding before call dump()

Zend\Debug\Debug::setEscaper(new Zend\Escaper\Escaper('iso8859-1'));

Maks3w closed this Nov 3, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment