Ver Mensaje Individual
  #4 (permalink)  
Antiguo 16/05/2017, 10:28
Avatar de hhs
hhs
Colaborador
 
Fecha de Ingreso: junio-2013
Ubicación: México
Mensajes: 2.995
Antigüedad: 10 años, 9 meses
Puntos: 379
Respuesta: Decode Unicode

Prueba lo siguiente:
Código PHP:
Ver original
  1. $unicode="\u0065\u0076\u0061\u006c\u0028\u0066\u0075\u006e\u0063\u0074\u0069\u006f\u006e\u0028\u0070\u002c\u0061\u002c\u0063\u002c\u006b\u002c\u0065\u002c\u0064\u0029\u007b\u0065\u003d\u0066\u0075\u006e\u0063\u0074\u0069\u006f\u006e\u0028\u0063\u0029\u007b\u0072\u0065\u0074\u0075\u0072\u006e\u0028\u0063\u003c\u0061\u003f\u0027\u0027\u003a\u0065\u0028\u0070\u0061";
  2.  
  3. $json_string = sprintf('"%s"',$unicode); # build json string
  4.  
  5. $legible_string = json_decode ( $json_string, true);
  6.  
  7. echo $legible_string;

Si tienes intl activado puedes hacer lo siguiente
Código PHP:
Ver original
  1. $legible_string = Transliterator::create('Hex-Any')->transliterate($unicode);
  2.  
  3. echo $legible_string;
__________________
Saludos
About me
Laraveles
A class should have only one reason to change.