April 1, 2009, 12:13pm
i have a problem using getAttributeLabel().
when i set us attributeLabels with "Umlauts" like: ö ä ü ß i get weird signs, so i encoded it like ü… etc.
public function attributeLabels()
'str'=>'Straße', // Straße
now when i use activeLabelEx() it prints "Straße" like it should be,
but when i user getAttributeLabel() it prints "Straße"
how can i make it work both ways
April 1, 2009, 2:04pm
Did you set your page encoding correctly? Also, make sure your class file is saved in proper encoding (should be the same as the page encoding you are using, e.g., UTF8). You don't have to HTML-encode these labels.
April 1, 2009, 2:18pm
i did set my page encoding to utf-8. how can i set the class file to utf-8?
April 1, 2009, 2:31pm
you have to save class file in UTF-8. I.e. Notepad++ save file to UTF-8.
April 1, 2009, 2:40pm
thank you both!!!
im so glad this forum exsits!