vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Meta Encoding tag (https://vborg.vbsupport.ru/showthread.php?t=39699)

everwicked 06-10-2002 08:06 PM

Meta Encoding tag
 
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
PHP Code:

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.


All times are GMT. The time now is 12:29 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00972 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete