PHP | Encoding Spanish Characters with json_encode

| By Webner

You may face a problem with Spanish characters in PHP while trying to use json_encode. After json_encode it doesn’t give any result and no any error either. For solving this use utf8_encode instead of json_encode. $result = utf8_encode ($value) Webner