Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-11-2007, 08:24 PM
rovnak rovnak is offline
 
Join Date: Jan 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 03-12-2007, 08:15 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 03-12-2007, 11:51 AM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:24 AM.


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.18044 seconds
  • Memory Usage 2,177KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete