Problems od special characters with sfWidgetFormDoctrineChoice in Symfony

280 views Asked by At

I'm using sfWidgetFormDoctrineChoice to get a list of languages from a MySql database. The list is in spanish language. All languages with special characters like for ex. Árabe looks OK (it got the tilde), but I'm getting the wrong representation (A!rabe) using the widget. How can I resolve this? Thanks in advance.

1

There are 1 answers

1
Visavì On BEST ANSWER

This is probably an encoding problem: verify that the list of languages registered in your database has the same encoding than the page where you display the widget.

But why don't you use the sfWidgetFormI18nChoiceLanguage widget ?