what is the name of this type of encode?

html, html-entities, php

Solution

These are... HTML entities (or "Numeric character references" for the nitpickers).

Try `html_entity_decode`.

Example:

$foo = html_entity_decode('انوان');
// gives you the arabic words in $foo

(If the string is in the form `ا...` you need to apply `html_entity_decode` twice. (I don't know if codaddict's edit is valid.))

Problem

If you copy and paste the following text in a html page, ``` انوان ``` you will the following Arabic text: انوان My question is: What is the name of this type of encoding that include numbers and hash (#) sign, and how decode it in PHP?

Original source