Issues

ZF-5414: Non ASCII characters break the columns when input is UTF-8 encoded

Description

Non ASCII characters break the columns when input is UTF-8 encoded.

The problem is located in the Zend_Text_Table_Column class on line 229. The str_pad() function is used and it is not overloaded by mbstring extension so it fails calculating correctly the string length.

Comments

Iconv has to be used instead of mbstring because it's available in default php installations. Mbstring is only allowed to be used when there is no other way.

Jean, can you please submit a test case to demonstrate, how the column breaks?

Test case for the bug

Fixed in r13556 and merged into 1.7 branch with r13557