0
votes

I am trying to render a form which contains accents in the setlabel method like:

$ticketNumber->setLabel("Endereço");

I have tried every single option out there from forums. but it does not work, it displays the &atilde instead of the true value of that entity.

I addition. if i try the following, the text for the label does not render(the label is blank) at all.

$ticketNumber->setLabel("Endereço");

In my application.ini have added the following:

resources.view.encoding = "ISO-8859-1"

I really don't know what is wrong. I've been fighting this for couple of days now. Any help is welcomed. thank you.

1

1 Answers

1
votes
$ticketNumber->setLabel("Endereço");

is correct. But you're then telling it to use an encoding where ç is not a valid character. You need to switch that to UTF-8 or similar:

resources.view.encoding = "UTF-8"