/    Sign up×
Community /Pin to ProfileBookmark

I have some pages that display islamic characters, for some reason i need to display these pages in an iframe.

the problem is when i run my UTF page independently i works fine, it shows all the characters. but when i run in iframe i can not control the charset, it will override by parent charset

my question is, can i embed a meta tag in to the iframe without touching the files or how can i redefine the charset in the middle of my php files?

i have tried declaring a meta tag
<META http-equiv=Content-Type content=”text/html; charset=UTF-8″>
into the php page right before my iframe tag, it didn’t helps…

any help will be appreciated

thanks in advance

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@bokehFeb 06.2006 — If it is the page in the iframe that is incorrectly displayed then it is that page that needs to have Content-Type declared properly. If you weren't using an iframe you wouldn't have this problem (this is 2006 after all).
Copy linkTweet thisAlerts:
@horiyochiauthorFeb 07.2006 — the page in the iframe cannot be touched, they are foreign pure html pages, and there is no other way to include the page except using iframe.


i will be great if this can solve without modify the foreign file and remove out from iframe.

hope there is a solution out there.
Copy linkTweet thisAlerts:
@bokehFeb 07.2006 — Of course there are other ways. For example you could open the page with php, reformat it and style it how you choose and then send it as your own output with the correct mime type and in the process do away with the archaic <iframe>.
×

Success!

Help @horiyochi spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...