How to display validation message with french symbols in Laravel?

Viewed 195

In Laravel validation a made rules to validate my fields, when I got an error it's shows me this error without french symbols

[["Le cin a d\u00e9j\u00e0 \u00e9t\u00e9 pris."]]

Instead of showing this message :

Le cin a été déjà pris.

NOTE : I translated the messages from english to french in \ressources\lang\en\validation.php

I made this code in AppServiceProvider in boot function but does'nt work :

Blade::setEchoFormat('e(utf8_encode(%s))');

How can I resolve this ?

2 Answers

Append within HTML head tags:

<meta charset="utf-8">

Could you try it?

Blade::setEchoFormat('e(utf8_decode(%s))');
Related