$tmatch[1] = html_entity_decode($tmatch[1], ENT_COMPAT, $pcharset)
$tmatch[1] = @html_entity_decode($tmatch[1], ENT_COMPAT, $pcharset);