0

I'm trying to save article in sinhala language which belongs to the charset "unicode" and get back the saved information via laravel. But when i'm saving, my data is saving with some kind of unknown tags. Please help me to solve this issue. Below is the picture of returning data. I set my database collation to utf8_general_ci and set encoding of every page into utf8 also. But issue is still there.

enter image description here

and below is my saving method in laravel.

public function store()
{
    $input = \Illuminate\Support\Facades\Request::all();

    $input['published_at']=Carbon::now();
    Article::create($input);

    return redirect('articles');
    }

and below is my method of getting the result

public function show($id)
{
    $article = Article::findOrFail($id);

    return view('articles.show', compact('article'));
}
Cœur
  • 37,241
  • 25
  • 195
  • 267
ShanWave007
  • 356
  • 1
  • 3
  • 20

0 Answers0