Reputation: 1955
I have the following string :
اگر بخواهید
My question is twofold:
Upvotes: 0
Views: 427
Reputation: 3729
I ran the script below and it looks like Arabic.
<?php
$string='اگر بخواهید';
echo html_entity_decode($string);
?>
Upvotes: 0
Reputation: 6771
They are UTF8 Entities, decode it with html_entity_decode.
Showing them in a browser: jsfiddle
Upvotes: 0
Reputation: 522577
Those are HTML entities, which can be decoded using html_entity_decode
:
echo html_entity_decode($str, ENT_COMPAT, 'UTF-8');
Upvotes: 1