php - Encode any character to numbers/Latin and decode it back -
I have a UTF 8 string that contains non-English symbols.
I tried The result is How can I do this with PHP? Unfortunately, the heelentity will encode only those characters who have a named institution. To convert everything into a numerical unit, you can use htmlentities ('a ??') & amp; Aring; & Amp; Shy; , but I need something like x3445 , so I can use html_entity_decode () or return some basic characters like this.
mb_encode_numericentities For example,
$ string = mb_encode_numericentity (HTML Straits, ENT_QUOTES, 'UTF -8 '), array (0x80, 0xffff, 0, 0xffff),' UTF-8 ');
Comments
Post a Comment