mercredi 27 janvier 2016

laravel 5.1 character error request

I've a problem whem I request the name of the input text form. My $request->input('name'); return the text with a character error.

Artist name: Aláfia

Blade template:

<form action="artist" method="POST" name="form-artist" id="form-artist" enctype="multipart/form-data">
   <input type="text" name="name" id="name" />
   <input type="file" name="image" id="image" multiple="multiple">
</form>

Controller:

return $request->input('name');

Result: Aláfia

The charset of the file and html is correct (utf-8). Someone can help me?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire