zendframework/zf2 — pull request #7002 by stephandesouza (2014-12-09 15:02:05+00:00)
Title: Changing encode from View Helper is not passed to EscapeHtmlAttrHelper

Previously #6707

Ideal where using ZF2 Components on non UTF-8 encoded projects (like onto ISO-8859-1 files), because this throws a Fatal Error at Zend/Escaper/Escaper.php on line 325.

## Sample
- http://pastebin.com/8uZHm5BM
- http://pastebin.com/pwjQdFe9

Will add a Test if needed

## Stack Trace

| Nr | Function | Location |
| --- | --------------------------------------------------------------------------------- | -------------------------------- |
| 2 | Zend\Form\View\Helper\FormSelect->render( )	| ../zf2-select.php:12 |
| 3 | Zend\Form\View\Helper\AbstractHelper->createAttributesString( ) | ../FormSelect.php:134 |
| 4 | Zend\View\Helper\Escaper\AbstractHelper->__invoke( ) | ../AbstractHelper.php:232 |
| 5 | Zend\View\Helper\EscapeHtmlAttr->escape( ) | ../AbstractHelper.php:49 |
| 6 | Zend\Escaper\Escaper->escapeHtmlAttr( ) | ../EscapeHtmlAttr.php:26 |
| 7 | Zend\Escaper\Escaper->toUtf8( ) | ../Escaper.php:16 |