2008年8月6日星期三

Re: [fw-mvc] specials characters problem

I would suggest to check if the page is being served with the correct
charset (header content-type or meta tag):


Try something like this in your testAction:
$this->_response->setHeader('Content-Type', 'text/html;
charset=iso-8859-1', true);

Or this in your view, inside the <head> tag:
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />


Ernesto


On Wed, Aug 6, 2008 at 12:58 PM, Benjamin.Gonzales <iadvmc@yahoo.com> wrote:
>
>
> any idea how I solve it?
>
>
>
>
> Benjamin.Gonzales wrote:
>>
>> My Action
>>
>> public function testAction()
>> {
>> $this->view->setEncoding('iso-8859-1');
>> }
>>
>> My file test.phtml
>>
>> <?php echo $this->escape("Género");?>
>>
>> http://www.nabble.com/file/p18818815/error.gif error.gif strange
>> characters
>>
>>
>> I am doing wrong?
>>
>>
>
> --
> View this message in context: http://www.nabble.com/specials-characters-problem-tp18818815p18856471.html
> Sent from the Zend MVC mailing list archive at Nabble.com.
>
>

没有评论: