Mysql decode is null




















Forgot Password? This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy.

Popular Course in this category. Course Price View Course. Free Data Science Course. Login details for this Free course will be emailed to you. Email ID. Sign up using Facebook. Sign up using Email and Password.

Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Related Hot Network Questions.

Question feed. Stack Overflow works best with JavaScript enabled. I wouldn't use this. With this it works but without it doesn't, even tho the two string are identical, am I missing something? Worked for me. Add a comment. Update: The issue is solved, look at the "Solution" paragraph in the question.

Pekka Pekka k gold badges silver badges bronze badges. I've been using the special characters since I started the application and there were no problems before. Locally, the JSON decoding works perfectly. On my server, it doesn't. That function appears on PHP 5. Nah, this should work. I can't do more testing right now, if I get to it later I'll post here. There are also a few hints in the user contributed notes: de. For me, on PHP 5. This should be reported as a bug to the PHP folks. Show 6 more comments.

You could try with it. Gabriel Castillo Prada Gabriel Castillo Prada 3, 4 4 gold badges 17 17 silver badges 29 29 bronze badges. I accidentally called stripslashes twice, which removed essential slashes and caused invalid JSON string. This answer helped me to spot the error — Philipp. Thanks a lot for your answer, you saved my time! Jack 2, 9 9 gold badges 46 46 silver badges 62 62 bronze badges.

Thanks for this - hope you find your missing English. Man you are legend, been figgling with this all day. Did it for me!! A simple tweak I made is adding a space in the replace, am using this, and it seems to replace my space as well. The problem is, this removes every single space, making english text all stuck together isn't it?

Albert Abdonor Albert Abdonor 7 7 silver badges 11 11 bronze badges. After trying all solutions above, this one finally worked for me.

Thanks a ton!! I had the same problem and I solved it simply by replacing the quote character before decode. In this case the function htmlspecialchars has possibly being used and the JSON cannot be parsed anymore. And yes, testing on Chrome. Thx to user Enrico Tempesti Enrico Tempesti 1 1 silver badge 5 5 bronze badges. Since PHP 5. Grant Grant 4, 1 1 gold badge 29 29 silver badges 35 35 bronze badges. Destreyf Destreyf 5 5 silver badges 7 7 bronze badges. TomoMiha TomoMiha 1 1 gold badge 11 11 silver badges 11 11 bronze badges.

Thank-you TomoMiha. Jeffrey Roosendaal Jeffrey Roosendaal 6, 8 8 gold badges 36 36 silver badges 52 52 bronze badges.



0コメント

  • 1000 / 1000