Special characters in dropDownList options

I’m trying to add the £ (pound) symbol for some of my dropDownList options, but I can’t get it to output. The options are in an array, as follows:


<?php echo CHtml::dropDownList('price_min', $_GET['price_min'], array('100'=>'£100','200'=>'£200')); ?>

But these options don’t get displayed. I have tried putting them in their entity number/name formats but that doesn’t work either.

You should save the file as UTF-8. Worked for me.

/Tommy

How do I save as UTF-8?

I have a conversion submenu in my editor (UltraEdit).

@GSTAR:

Maybe that’s also interesting for you:

http://www.yiiframework.com/doc/cookbook/16/

Cheers that’s sorted now, I changed the file format to UTF-8 in Notepad++.