// Decode entities in a nicer way
function decodeEntities ($str) {
- // @TODO We may want to switch over to UTF-8 here!
- $decodedString = html_entity_decode($str, ENT_NOQUOTES, "ISO-8859-15");
+ // Decode the entities to UTF-8 now
+ $decodedString = html_entity_decode($str, ENT_NOQUOTES, "UTF-8");
// Return decoded string
return $decodedString;