I have the following array:
Array
(
[BookDateID] => 4
[HotelName] => Adams’ Inn
)
Output:
{\
json_encode
needs UTF-8 encoded data. Make sure the data is UTF-8 encoded; currently it's likely Latin-1 encoded. How to do this depends on where the data comes from. Read What Every Programmer Absolutely, Positively Needs To Know About Encodings And Character Sets To Work With Text and Handling Unicode Front To Back In A Web App.