PHP Classes

PHP UTF 8 Replace Characters: Replace UTF-8 characters with Unicode escape text

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 75%Total: 261 All time: 7,801 This week: 673Up
Version License PHP version Categories
unicodeutf8replace 1.0.0GNU General Publi...5.2PHP 5, Text processing
Description 

Author

This class can replace UTF-8 characters with Unicode escape text.

It can take a given text encoded in UTF-8 and replaces it with Unicode escape sequences that can be used in JavaScript code or JSON text.

The code and comments are in Spanish. In Spanish:

Convertir cadenas en ascii a unicode, se pueden agregar más caracteres al diccionario para su correcta interpretación. Funcion parecida a json_encode PHP.

Picture of Isaac Trenado Mx
  Performance   Level  
Name: Isaac Trenado Mx is available for providing paid consulting. Contact Isaac Trenado Mx .
Classes: 7 packages by
Country: Mexico Mexico
Age: 38
All time rank: 212023 in Mexico Mexico
Week rank: 128 Up2 in Mexico Mexico Up
Innovation award
Innovation award
Nominee: 1x

Documentation

 

Details

UnicodeUtf8Replace

Ascii - Utf8 to Unicode

UnicodeUtf8Replace

Original {"oficio":"","solped":"000000000","pos_financiera":"0000","fecha":"9999-99-99","fecha_sol":"9999-99-99","centro":"4410","zona":"MEXICO","fecha_libsol":"9999-99-99","fondo":"000","area":"XXX","monto_solped":"0000000.00","orden":"","entidad":"MEXICO","tipo_licitacion":"PUBLICA","obra":"OPERACI?N Y RESTABLECIMIENTO DE LA INFRAESTRUCTURA DE L?NEAS Y REDES DE, DISTRIBUCI?N DE ENERGIA ELECTRICA, Y DE CONTROL EN EL ?MBITO DE INFLUENCIA DE LA DIVISION DE DISTRIBUCI?N VALLA DE M?XICO NORTE DE LA ZONA TLALNEPANTLA.","id_solicitud":"0"}

Resultado {"oficio":"","solped":"000000000","pos_financiera":"0000","fecha":"9999-99-99","fecha_sol":"9999-99-99","centro":"4410","zona":"MEXICO","fecha_libsol":"9999-99-99","fondo":"000","area":"XXX","monto_solped":"0000000.00","orden":"","entidad":"MEXICO","tipo_licitacion":"PUBLICA","obra":"OPERACI\u00d3N Y RESTABLECIMIENTO DE LA INFRAESTRUCTURA DE L\u00cdNEAS Y REDES DE, DISTRIBUCI\u00d3N DE ENERGIA ELECTRICA, Y DE CONTROL EN EL \u00c1MBITO DE INFLUENCIA DE LA DIVISION DE DISTRIBUCI\u00d3N VALLA DE M\u00c9XICO NORTE DE LA ZONA TLALNEPANTLA.","id_solicitud":"0"}

jsonlint.com - Resultado { "oficio": "", "solped": "000000000", "pos_financiera": "0000", "fecha": "9999-99-99", "fecha_sol": "9999-99-99", "centro": "4410", "zona": "MEXICO", "fecha_libsol": "9999-99-99", "fondo": "000", "area": "XXX", "monto_solped": "0000000.00", "orden": "", "entidad": "MEXICO", "tipo_licitacion": "PUBLICA", "obra": "OPERACI\u00c3?N Y RESTABLECIMIENTO DE LA INFRAESTRUCTURA DE L\u00c3?NEAS Y REDES DE, DISTRIBUCI\u00c3?N DE ENERGIA ELECTRICA, Y DE CONTROL EN EL \u00c3?MBITO DE INFLUENCIA DE LA DIVISION DE DISTRIBUCI\u00c3?N VALLA DE M\u00c3?XICO NORTE DE LA ZONA TLALNEPANTLA.", "id_solicitud": "0" }


  Files folder image Files (5)  
File Role Description
Accessible without login HTML file example-unicodeutf8_example.htm Doc. Documentation
Accessible without login Plain text file LICENSE Lic. License
Accessible without login Plain text file README.md Data Auxiliary data
Plain text file UnicodeUtf8Replace.php Class Class source
Accessible without login Plain text file unicodeutf8_example.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:261
This week:0
All time:7,801
This week:673Up
 User Ratings  
 
 All time
Utility:90%StarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:100%StarStarStarStarStarStar
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:75%StarStarStarStar
Rank:75