View Full Version : Why isn't this iframe showing in Chrome?
robertsaunders
02-07-2012, 05:34 PM
I've just seen that the iframe isn't showing on one of my pages using Chrome. It shows up fine in IE and Firefox. Can anyone please tell me why?
Here is the page: http://www.curiouser.co.uk/illusions/cardtrickf.htm
Thanks,
Rob
jscheuer1
02-07-2012, 05:50 PM
For some reason Chrome thinks the page in the iframe is encoded as Simplified Chinese (UTF-16LE). Try putting a meta charset tag on the page(s) in the iframe, ex:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<LINK REL="stylesheet" HREF="style3.css" TYPE="text/css">
</HEAD>
<BODY>
<div style="margin-top: 30px; margin-bottom: 2em; text-align: center; font-size: 90%">
<p style="margin-bottom: 50px">
Choose one of the cards below, and remember it.
</p>
<img src="cardsb.gif" height="176" width="600" alt="card trick">
<p class="solution">
<a href="cards2.htm">CONTINUE</a>
</p>
</div>
</BODY>
The browser cache may need to be cleared and/or the page refreshed to see changes.
If that doesn't work, you will need to configure the default encoding of the server or have your host do it for you. It should not be UTF-16, probably UTF-8, but since you seem to favor ISO-8859-1, perhaps that would be best for your site.
robertsaunders
02-07-2012, 09:23 PM
Thanks John. Just added the charset to the pages in the the iframe as you suggested and now works fine.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.