1

Topic: header VS html Content-Type?

what is the difference

if i send in header

header('Content-Type: text/html; charset=iso-8859-1');

and in html

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

and what is the effect if i send in header Charset=windows-1252 , in html  charset=iso-8859-1

If your people come crazy, you will not need to your mind any more.

Re: header VS html Content-Type?

I don't think it matters. You're telling the browser that the content coming up is to be displayed using a certain character set. How you do it shouldn't matter.

The effect of using windows-1252 instead of iso-8859-1 is that your browser will display characters differently. In your case, arabic characters instead of weird latin characters.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3 (edited by zaher 2004-04-28 10:10)

Re: header VS html Content-Type?

No , i mean the Apache send header with content-type charset
and with html we send content-type

but the header charset is override the html charset that make a problem with my local Apache and my web site Apache
the first one send with header charset=windows-1256 and with html charset=iso-8859-1

my web site Apache not send charset but with html charset=iso-8859-1

so the first (local) take charset=windows-1256 not charset=iso-8859-1

when backup my database and import it localy i have this posts like that

& # 1585 & # 1585 & # 1585  .....

i correct my local apache config by remove

AddDefaultCharset WINDOWS-1256
to force it not send charset=windows-1256 and to Apache are same now

mmmm i have trouble with my mind to understand what exactly happen sad

If your people come crazy, you will not need to your mind any more.

4

Re: header VS html Content-Type?

i use English language for my forums not Arabic in both local and web site

If your people come crazy, you will not need to your mind any more.

Re: header VS html Content-Type?

Ah, ok. Oh well, you seem to have solved it :)

"Programming is like sex: one mistake and you have to support it for the rest of your life."

6

Re: header VS html Content-Type?

useing Dual language for one forum make this prloblem so i add to config.php

header('Content-Type: text/html; charset=windows-1256');

If your people come crazy, you will not need to your mind any more.

7 (edited by ameenullah 2004-06-07 06:29)

Re: header VS html Content-Type?

Hi I tried your site sad
It is asking for Arabic text download!
I dont know arabic, when I pressed "cancel" it stopped. I cant see your Cool site...

You can provide in English too know...

God wisely designed the human body so that we can neither pat our own backs nor kick ourselves too easily

8

Re: header VS html Content-Type?

http://www.parmaja.com/?language=en

If your people come crazy, you will not need to your mind any more.

9

Re: header VS html Content-Type?

i was writen auto detect language may be there is a bug :-)

If your people come crazy, you will not need to your mind any more.

Re: header VS html Content-Type?

Thanks! I browsed your site, i am notgetting the english language in "Recent discussions" Column... look like its junk characters... why is it so?

"ÇáÈÑãÌÉ ÛÑÖíÉ ÇáÊæÌå ÊÍÊ ..." this is the first link in that discussion....and all looks similar....

God wisely designed the human body so that we can neither pat our own backs nor kick ourselves too easily

Re: header VS html Content-Type?

Almost all the pages having the same problem ZAHER. character is not matching..

God wisely designed the human body so that we can neither pat our own backs nor kick ourselves too easily

12 (edited by zaher 2004-06-07 09:26)

Re: header VS html Content-Type?

Opps, this topics wrote in arabic by my friends,but you can post in english
i am good in Delphi if you ask,or you want to know something about  my country.

the home page and projects must be multi language, its a small site.

thank for care :-)

If your people come crazy, you will not need to your mind any more.

Re: header VS html Content-Type?

Oh its Arabic... Here the font support is not there, thats why may be in English site also I am getting these text. anyway goodluck!!
Insha Allah!! I will get back to you if I want to know more.. smile

God wisely designed the human body so that we can neither pat our own backs nor kick ourselves too easily