Question

How can i convert this

$langClarContent = > &# 1059.,&#1095.,&#1080.,&# 1090.,&# 1077.,&# 1083.,Dokeos &# 1077., &# 1089.,&# 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.,&# 1085.,&# 1072.,&#1077.,&# 1114.,&# 1077.,. &# 1058.,&# 1086.,&# 1112., &# 1080.,&#1084., &# 1076.,&# 1086.,&# 1087.,&# 1091.,&# 1096.,&# 1090.,&# 1072., &# 1085.,&# 1072., &#1091.,&# 1095

to an utf related answer like

$langClarContent = Учител Dokeos е систем за управување со учење и знаење. Тој им допушта на у&#1095

Was it helpful?

Solution

Note.. Htmlspecialchar only converts some of the characters.. if you want to convert all characters use: html_entity_decode

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

OTHER TIPS

Once you have that array properly formatted you can do something like this in PHP:

foreach ($langClarContent as $char){
echo htmlspecialchars_decode($char);
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top