<?php
/******************************************************************************
Online PHP Interpreter.
Code, Compile, Run and Debug php program online.
Write your code in this editor and press "Run" button to execute it.
*******************************************************************************/
$Nombre="Espectro_de_difracci%C3%B3n";
function utf8Urldecode($Nombre)
{if (is_array($Nombre)){
foreach ($Nombre as $key => $val) {
$Nombre[$key] = utf8Urldecode($val);
}
}
else{
$Nombre=preg_replace_callback('/%([0-9a-f]{2})/mi', function($m)
{
//var_dump(chr('0x'.$m[1]));
return chr('0x'.$m[1]);
}, $Nombre);
}
return $Nombre;}
$Nombre=utf8Urldecode($Nombre);
echo $Nombre;