Search code examples
phpcharacter-encodingspecial-characters

PHP replace special characers


I am trying to get IP details from this page http://www.geoplugin.net/json.gp?ip= in PHP.

But sometimes it returns some characters like this š. Is there any way to replace it with the respective character (š - š)?


Solution

  • Try function html_entity_decode()