lnb596844
2 years ago
524
14
Laravel

Malformed UTF-8 characters, possibly incorrectly encoded

Posted 2 years ago by lnb596844

When I'm trying to return the result from my controller, I'm getting this error "Malformed UTF-8 characters, possibly incorrectly encoded"

$bank_receipts = DB::table('bank_receipts')
                ->where('transaction_id', 1);

$receipts = DB::table('cash_receipts')
            ->where('transaction_id', 1)
            ->unionAll($bank_receipts)
            ->get();

return response()->json($receipts, 200);

Please sign in or create an account to participate in this conversation.