HTML number for utf

How can i convert this

$ langClarContent => & # 1059., # 1077. &, # 1080., # 1089., & # 1090., & # 1077., & # 1084. & # 1079., & # 1072. & # 1091. & # 1087., & # 1088., & # 1072., & # 1074., & # 1091., & # 1074., & # 1072., & # 1114., & # 1077., & # 1089., & # 1086., & # 1091. & # 1095., & # 1077., # 1114., & # 1077. & # 1080. &, # 1079., No. 1085., No. 1072., No. 1077., No. 1114 ., & # 1077., & # 1058., & # 1086., & # 1112. & # 1080. & # 1084. & # 1076. & # 1086. & # 1087. & # 1091., & # 1096. , & # 1090., & # 1072. & # 1085., & # 1072. & # 1091. & # 1095

to utf related answer e.g.

$ langClarContent = Teacher Dokeos e systems are managed with learning and knowledge. No. 1095

+3
source share
2 answers

Note. Htmlspecialcharconverts only some characters. If you want to convert all characters, use:html_entity_decode

http://th.php.net/manual/en/function.html-entity-decode.php

+3
source

Once you format this array correctly, you can do something like this in PHP:

foreach ($langClarContent as $char){
echo htmlspecialchars_decode($char);
}
0
source

Source: https://habr.com/ru/post/1736239/


All Articles