zendframework/zf2 — pull request #6707 by stephandesouza (2014-09-26 21:43:23+00:00)
Title: Changing encoding from View Helper are not passed to HtmlAttrHelper

Ideal where using ZF2 on non UTF-8 encoded projects, because is throwing 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 |