Character rendering

My new website almost works perfectly - except -

My web pages contain:

<meta http-equiv="content-type" content=text/html;charset=iso-8859-1">

In spite of this, my pages are being rendered as UTF-8, and all my curly quotes and apostrophes are displaying as little boxes.

Can I fix this?

Thanks.
Jerry

1 Like

(fixing a typo)

<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
1 Like

This is the default behaviour of free hosting

Reading these may help

https://forum.infinityfree.com/search?q=utf8

7 Likes

Does Infinity offer paid hosting that will allow iso-8859-1?

1 Like

Try adding the charset via .htaccess, either through this method:

Or by adding it as a default charset with this line:

AddDefaultCharset ISO-8859-1
7 Likes

Thank you Chris.
I have no .htaccess file; I don’t use style sheets.
All my pages are coded with META TAG as shown above.
Jerry

1 Like

Try creating a .htaccess file in your htdocs folder with the line I mentioned above and see if that fixes your website’s encoding. The web server is not checking the meta tags when serving your files, so if you do not specify the charset it will use the default, which here is UTF-8.

5 Likes

FTP won’t let me edit or replace the .htaccess file. :frowning:

1 Like

You are probably trying to edit the .htaccess file that is outside of htdocs. That file should have a big “DO NOT EDIT THIS FILE” line at the beginning; you need to create a new file inside your website’s htdocs folder, name it .htaccess, and then add the line to it.

7 Likes

That works perfectly. Please snuggle up close to your computer monitor so I can kiss you!
Jerry

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.