I'm currently building a website for a Polish company and having some trouble with the special signs showing up as a square with demo in it: img -> 1
The text shown there comes from an API which does return the right characters. Because when I just var_dump the data I get the right characters. img -> 2
I simply loop over the variable and print out the title in the view like this:
@foreach ($courses as $course)
<div class="courses__course">
<div class="courses__tag">NEW</div>
<h1 class="text--dark"></h1>
My page starts of with:
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="utf-8"/>
And I've already tried replacing the meta charset with
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Which still causes the same problem.
This problem seems to be present on all browsers on both my pc and mobile. (tested chrome, firefox & edge)
The laravel setup is as basic as it gets, literally just ran the installer and added some html, scss and a controller.
Aucun commentaire:
Enregistrer un commentaire