CHtml::dropDownList and ä & ö

Hi,

When I’m using CHtml::dropDownList and have items that contains character like ä or ö, the function returns nothing: e.g. <option></option>. Charset is utf8. Any solutions?

Check this thread. Same problem? As suggested in the thread, see also this cookbook article.

/Tommy

Thank you for your reply, but your advice didnt help me. Im using Eclipse and changed the encoding to utf8, but no help.

Check everything from the cookbook again. Something must be wrong. This simple example works without problems:


<?php echo CHtml::dropDownList('test','value2',array(

    'value1' => 'Test: äöü',

    'value1' => 'Something',

)); ?>



Where does the data for your list come from?