I have a problem with my HTML5 webpage that I haven't been able to research an answer for. Im using swedish letters in the text (åäö) and started out by using UTF-8 encodig as such:
<!DOCTYPE html>
<html lang = 'sv'>
<head>
<title> </title>
<meta charset='utf-8'>
<meta name="description" content=' '>
<link rel = 'stylesheet' href = './css/auroracss.css'>
</head>
This doesn't work for displaying the swedish letters in 3 out of 4 of my HTML5 pages, as I get the � chars when I preview. However, for the fourth page, using exactly the same head tag, the characters are displayed properly.
When I switch out UTF-8 to ISO-8859-1 the opposite is true - displaying the characters will work fine for 3 out of 4 pages but the same one which displayed properly with UTF-8 will show � chars when the ISO enconding is applied.
Everything validates.
I would like to stick to only one encoding choice here and not mix them even though that may be a quick fix. What is the cause for the problem?