Frage

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.

War es hilfreich?

Lösung

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 ?

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top