-1

The web page shows the content as below

Golden Temple�is a Sikh�Gurdwara�located in the city of�Amritsar,�Punjab,�India. It was built by�Guru Arjan, in the 16th Century.

but the actual content is as below

Golden Temple is a Sikh Gurdwara located in the city of Amritsar,Punjab,India. It was built by Guru Arjan, in the 16th Century.

please help me

Nidheesh
  • 4,390
  • 29
  • 87
  • 150
Rahul
  • 27
  • 6

1 Answers1

1

Try with

$result = preg_replace('/[^\x00-\x7F]+/', '', $dbstring); // remove all non-ASCII (so called special) characters from your string:

or

$result=utf8_encode($dbstring);  // encodes an ISO-8859-1 string to UTF-8
Jenz
  • 8,280
  • 7
  • 44
  • 77
  • but i want to use multiple languages like english, urdu, arebic, hindi etc . this is not working with other languages – Rahul May 15 '14 at 06:57