0

I have problem decoding html encoded character using php, what should i do?

Below is the sample input.

 %D8%A7%D8%AB%D8%A7%D8%B1%D9%87 %D8%A7%D9%84%D9%85%D8%B1%D9%87

Below is the sample output i want.

اثاره المره
pmesco
  • 29
  • 8

1 Answers1

0

Use PHP's urldecode function:

urldecode("%D8%A7%D8%AB%D8%A7%D8%B1%D9%87 %D8%A7%D9%84%D9%85%D8%B1%D9%87");
Daniel
  • 10,641
  • 12
  • 47
  • 85