Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1230

Two almost identical html/css pages renders differently

$
0
0

Hi,

I'm upgrading a PHP 5 webpage to PHP 8. As part of the update, I'm also switching the character encoding from charset=iso-8859-1 to charset=utf-8, and have converted the files to UTF-8 without BOM.

However, after the conversion, the converted page becomes significantly longer for some reason. And I can't figure out why. No HTML has been changed (except the charset). But I noticed when looking at the source code using Firefox that Firefox underlines in red both HTML and HEAD when the charset is set to UTF-8 (See images below)

I also had a look at a similar post (Identical HTML/CSS looks differently) and I tried separating the content and the charset but with the same result as before.

Here are the links to the original page and the upgraded page:

Original page: (charset=iso-8859-1): https://www.bokaochplanera.se
Upgraded page (charset=utf-8): https://bokaochplanera-dev.trampolinfilm.se/

Image Source code - Original page: Firefox underlines DOCYTYPE in red
Image Source code - Upgraded page:Firefox underlines DOCYTYPE, HTML and HEAD in red

What am I missing!?Thanks!


Viewing all articles
Browse latest Browse all 1230

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>