$msg = ereg_replace("ó|Ó", "o", $msg);
$variable = "&caracteres=áéíóúñ&";echo utf8_encode($variable);