0
votes

6 in Windows and start to develop a system, but when I tried to write files '.blade.php' with special characters I got stuck. They only shows '�'.

I saw many people saying the same thing that this other question https://pt.stackoverflow.com/questions/81492/problema-com-caracteres-especiais-laravel but this didn't worked for me.

I also put this code on my base '.blade.php' file wich I'am extends from the others one

!DOCTYPE html

html lang="pt-br"

meta http-equiv="Content-Type"

content="text/html; charset=UTF-8"/>

1
html lang="pt-br missing ending quotelewis4u
check encoding in your database if you get data fromAdam Kozlowski
In your config/database.php, what charset and collation is set?Marius Engen Haugen
I can access the database, but the retrieving data is also showing wrong like a name "João Huel" is showed like "Jo\u00e3o Huel". My charset in config/database.php is "utf8mb4" and the collation is "utf8mb4_unicode_ci". My created database is in collation utf8_general_ciNathan

1 Answers

0
votes

After some tests I fixed the problem, it was caused because the default encoding file of Eclipse IDE was conflicting with UTF8. So I changed it and it worked