Replacing \r\n (newline characters) after running json_encode
问题 So when I run json_encode, it grabs the \r\n from MySQL aswell. I have tried rewriting strings in the database to no avail. I have tried changing the encoding in MySQL from the default latin1_swedish_ci to ascii_bin and utf8_bin. I have done tons of str_replace and chr(10), chr(13) stuff. I don't know what else to say or do so I'm gonna just leave this here.... $json = json_encode($new); if(isset($_GET['pretty'])) { echo str_replace("\/", "/", jsonReadable(parse($json))); } else { $json = str