How does "PHP" convert Unicode encoding to normal encoding?

attempts to mimic JS"s charCodeAt method, and the result of "c".charCodeAt () is 99.

I use mb_convert_encoding (99, "UTF-8"," Unicode, UCS-2, UCS-4, ASCII") , but the output remains the same.

(converted successfully with chr (99) , but what I want is to convert in deUnicode-- you know, it definitely exceeds the number of 255s).

question:

  • Unicode converts c to 99. In PHP, how to convert 99 into c in the way of deUnicode?
Mar.22,2021

it turns out that I don't know Unicode.

mb_convert_encoding ('&-sharp'. Intval (182). ';', 'UTF-8',' HTML-ENTITIES')

the link above can solve this problem: chr-Notes

Menu