Grant
Grant

Reputation: 1337

Reload meta http-equiv charset after ajax page load

On my site I use a fair amount of special characters like © etc...

Now, Jquery messes up these special characters unless you specify the proper charset, in this case -

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

The problem i'm having is that after using ajaxify to load the main chunk of the content on my site this tag isn't being reloaded. So the first time you load the page the correct characters are displayed then as soon as you use ajax to load a new page they all turn into that lovely little black box question mark that JQuery loves to spit out.

So my question...

How can I force that meta tag to reload after each new page is loaded with Ajaxify.js?

Upvotes: 1

Views: 478

Answers (1)

Grant
Grant

Reputation: 1337

Found the answer myself...

In your .htaccess file add the following line

AddDefaultCharset iso-8859-1

That fixes it.

Upvotes: 1

Related Questions