vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Getting a utf-8 board up and running (https://vborg.vbsupport.ru/showthread.php?t=145419)

AndrewD 04-21-2007 12:55 PM

Getting a utf-8 board up and running
 
1 Attachment(s)
I'm having a certain amount of brain pain getting a full UTF-8 based language (Chinese) working, in order to debug some settings with my product. Would appreciate some help:

- Clean installation of VB
- Patched class-xml.php as per guidelines (function &parse($encoding = 'ISO-8859-1', $emptydata = true) => function &parse($encoding = 'UTF-8', $emptydata = true))
- Installed official simplified Chinese language pack (utf-8)
- Installed external product + its utf-8 language file (my own, as it happens)
- Imported database tables from the Chines site that reported a bug
- Database tables are all utf8_general_ci collation

There's three different behaviours showing up, see images:
- The main vb menus and text are being displayed as extended latin characters
- The imported product's menu text is being displayed correctly in simplified Chinese
- The imported product's database entries are being displayed as series of question marks
- Items added in Chinese to the forums are being displayed in a compbination of valid Chinese and garbage.

Everything in the database shows up correctly in Chinese using phpmyadmin, so I know the raw material is correct.

Any suggestions where should I start looking?

itsblack 04-22-2007 11:47 AM

I guess maybe the language file self has problem. So I send you the language file now I'm using per email.

The better way to creat a utf8 board is creat a utf-8 database in phpmyadimn at first. The MySQL connection collation should choose "utf8_general_ci". Then use this database install a new board.


All times are GMT. The time now is 07:40 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.01194 seconds
  • Memory Usage 1,706KB
  • 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
  • (2)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