I have a field which contains a price. In the matrix tpl.php I theme it like below. Unless I use the escape code, the currency symbol is viewed wrong. This only happens in the matrix field, when I output the same
In my content type this character comes from another CCK field.
Example code
Shows the wrong character, in my Firefox 3 it looks like a diamond with a question mark:
<?php
$manipulated_data[$row_index][$column_index] = '<div class="number">' . '£ ' . $field_currency_rendered . format_number($cell_value, 0) . '</div>';
?>
Shows the correct GBP pound sign:
<?php
$manipulated_data[$row_index][$column_index] = '<div class="number">' . '£ ' . $field_currency_rendered . format_number($cell_value, 0) . '</div>';
?>
Of course its preferable to escape characters like this, but its still a bit curious why matrix views it wrong when it views correct outside it.
Comments
Comment #1
tsvenson commentedGets even more interesting.
When I use:
in the tpl.php to print the currency symbol £ (not escaped) is viewed properly?!?!?
Comment #2
aaron1234nz commentedThis issue is outside the scope of this module i'm afraid so I'm closing this issue