PDA

View Full Version : Meta Encoding tag


everwicked
06-10-2002, 08:06 PM
OK I am using vBportal and I ran into this problem.

I got some of my content translated in Greek but to display properly, I need to add the Greek Encoding tag.

Therefore I added
''<meta http-equiv="Content-Type" content="text/html; charset=Windows-1253">';
in my P_Home template.

But this is strange. If you visit the PHP page you get some unknown encoding. If I save the page with my browser, upload and view (as .html) it displays fine. Any ideas?

Original: http://www.everwicked.com/content/DivX_5_Guide_GR/
Save: http://www.everwicked.com/test.html

HEEELP! :eek:

scsa20
06-11-2002, 12:33 AM
I think you want headinclude, try puting that meta code into the headinclude template

everwicked
06-11-2002, 12:37 AM
Well, that can't make any difference since the exact same code works in the .html.

The only thing I can think of is that browsers don't pickup the encoding from .php files.

But why?

dabean
06-11-2002, 03:28 AM
Your sending the charset as part of the content-type http header.

hdr>HTTP/1.1 200 OK
hdr>Date: Tue, 11 Jun 2002 04:18:23 GMT
hdr>Content-Type: text/html; charset=iso-8859-1


The content type in the http header takes preferance over any content type specified in the document you need to add
header("Content-Type: text/html; charset=Windows-1253");
to headinclude.

everwicked
06-11-2002, 08:01 AM
ah I see.

Ok thanks guys, I will try it out.