Degree '°' character not displaying in php json_encode function, how to display this?

后端 未结 4 1470
臣服心动
臣服心动 2021-02-19 21:59

I pass php array like

[sit_latitude] => 20° 23.298\' N

inside json_encode(); and output is like,

  {\"sit_latitude\":null}
<         


        
4条回答
  •  感情败类
    2021-02-19 22:47

    You could try htmlspecialchars() function http://php.net/manual/en/function.htmlspecialchars.php

提交回复
热议问题