문제

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.

도움이 되었습니까?

해결책

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 ?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top