UTF-8 but still not showing ÆØÅ (danish chars)
If you declare that your content is encoded in UTF-8 with the meta tags or default charset, then your content needs to be actually encoded in UTF-8. The fact that it shows correctly when declaring your content to be encoded in ISO-8859 means that your content is actually encoded in ISO-8859. Save your source code file as UTF-8 or otherwise make sure that your content is UTF-8 encoded.
![Christian Bekker](https://i.stack.imgur.com/x0kyl.jpg?s=256&g=1)
Christian Bekker
Updated on June 04, 2022Comments
-
Christian Bekker about 2 years
Take a look at this: http://thebekker.dk/_skole/GFeksamen/
You can see the 2nd menu item show some weird sign, instead of "Ø"
Ive set utf-8 in meta, and even tryed with AddDefaultCharset UTF-8 in .htaccess...
Still no result, if i change to ISO-8859-1 which works fine, but that makes problem when i start making ajax calls for content...
I dont get it? How do i get it to use UTF-8 and show ÆØÅ
-
Christian Bekker about 12 yearsHow do i then re-encode easiest? Ive tried to open the file in notepad, and saving with UTF-8, and uploading again with filezilla. Still no luck..
-
Gromski about 12 yearsDepends on your editor. I wouldn't call Notepad an editor. Get something like Notepad++ at least and make sure the file is not reencoded during upload. I have no real idea about the pitfalls on Windows here since I don't use it, maybe you can open a new question specifically about the software you're using...
-
Christian Bekker about 12 yearsI found out! I oversaw that it acually saved the weird sign now, so i can just change them to the right chars now.