Reputation: 1047
i have a smarty array with the following values / keys (simplified):
$smartyArray => array(
'wei�' => 'Color',
);
But my "selector" for the key has the correct encoding:
$keyToSelect = 'weiß';
Both were deliverd by PHP. The goal is, to encode the key in the array by $keyToSelect
$smartyArray[$keyToSelect] => 'Color';
How can i transform the "�" to a simple "ß" - in smarty without php?
Upvotes: 0
Views: 4245
Reputation: 51
deceze is right, but I guess you could use something like this http://www.smarty.net/docs/en/language.modifier.to_charset.tpl
Upvotes: 1