You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm loading results from my database and displaying via response()->json(array($data), 200);
On my local leaf serve development server (MacOS) data with special characters (é) is displaying fine. On development, I get a blank screen. There's no error in my logs. Using the Leaf debug to file method shows the data.
I'm guessing it has to do with the json response, and possibly with the database encoding. But I can't find out what exactly. Does anyone have any suggestions?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm loading results from my database and displaying via
response()->json(array($data), 200);
On my local leaf serve development server (MacOS) data with special characters (é) is displaying fine. On development, I get a blank screen. There's no error in my logs. Using the Leaf debug to file method shows the data.
I'm guessing it has to do with the json response, and possibly with the database encoding. But I can't find out what exactly. Does anyone have any suggestions?
Debug data:
Using:
On php 7.4.33, CentOS 7, MariaDB 10.5.23
Database is using
CHARSET=utf8 COLLATE=utf8_general_ci
. Same for tables and fields.Beta Was this translation helpful? Give feedback.
All reactions