Reputation: 115
I have an issue.
I am working on dual language i.e arabic and english language in my project.
Everything working fine but when i try to show validation in arabic it doesnot support instead shows ???? for arabic text.
What i did was in lang folder i created ar folder where validation text for arabic are written in validation.php file as
<?php
return [
'required' => 'ال :attribute مطلوب',
'attributes' => [
'first_name'=>'مطلوب'
],
];
i have included utf-8 in html too.
What else i need to do.
Thanks in advance
Upvotes: 0
Views: 2063
Reputation: 586
Make sure that you added in your HTML header
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
if the above is true
try to put this
\Blade::setEchoFormat('e(utf8_encode(%s))');
in your app/Providers/AppServiceProvider.php file, boot method
Upvotes: 1