Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
In a php web service i need data output as JSON format, am retrieving data from MySQL to array then converting this array to JSON using json_encode. But my result is a empty page, not displaying even any error. If i convert the array using this function 'utf8_encode(array)' its working properly and getting JSON result. This issue is with the new server we configured with os ubundu server 14.0.4, apache2 and php5-5.5.9. Is there any server side settings needed. I have tried with another server with same configuration there its working properly getting JSON result without 'utf8_encode(array)' function in php
Posted
Updated 11-Oct-15 21:54pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900