vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   About to commit sepeku - need UTF-8 ...getting ISO-8859-1 (https://vborg.vbsupport.ru/showthread.php?t=141770)

rovnak 03-11-2007 08:24 PM

About to commit sepeku - need UTF-8 ...getting ISO-8859-1
 
Deep breath ... deep breath. Grit teeth.

Ok, I've been chasing my tail off and on for about two weeks on this crap.

I have done every recommend thing that I can find in a desperate attempt to get my vBulletin forum to generate UTF-8 encoded pages.

Well, here's the rub. The pages ARE UTF-8 encoded. But for some stinking reason the HTTP Header continues to specify ISO-8859-1.

Content-Type: text/html; charset=ISO-8859-1

This is driving me absolutely, freaking nuts. WHAT HAVEN'T I DONE?

Ok, starting on a COMPLETELY NEW scraped box. Latest everything, except vBulletin which is 3.6.4

-- My MySQL database is ALL UTF.

-- I installed vBulletin with the config.php UTF-8 line uncommented
$config['Mysqli']['charset'] = 'utf8';

-- I modifed the headerinclude template in vBulletin so that the Meta tag specifies UTF-8
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

-- Apache is set for UTF-8
AddDefaultCharset UTF-8

Yet, despite ALL THIS, the freaking http head continues to specifiy
Content-Type: text/html; charset=ISO-8859-1

WHAT MORE CAN I DO FOLKS?

At first, I thought it was something on the shared host. So I waited two weeks until I could get my own dedicated server set up. Now, I have the totally clean, dedicated server. I installed all this crap, and lo and behold I have the same freaking problem still.

I thought - "it can't be vBulletin ... the page is really UTF-8. The meta tag says UTF-8 ... it must be Apache or PHP"

but, now I don't know, now I think maybe it IS vBulletin f'n me. Because, on the exact same server, I can run wikimedia and the wikimedia pages come down to my client with CORRECT HTTP headers.
Content-Type: text/html; charset=UTF-8

So, who or what can be the sticking point? This is driving me nuts, as you can see. I will be eternally grateful for the answer to this riddle.

Marco van Herwaarden 03-12-2007 08:15 AM

I see that you already had this answered on vB.com.

One more thing to clarify, there are different places that use a characterset:

Storage (Database/Table/Column)
This controls how the data is stored in the database.

Database Connection
This is the one you set in the config.php. It tells MySQL that the data that will be sent from the application will be using this characterset. If it is different from the storage characterset, then MySQL will try to convert the data to the storage characerset.

HTML Characterset
As set in the Language Settings. This is how the data will be sent to your browser.

peterska2 03-12-2007 11:51 AM

You need to set the language to UTF-8 in the language manager > edit settings then undo your edit to headinclude


All times are GMT. The time now is 04:17 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.01021 seconds
  • Memory Usage 1,715KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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