vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   encoding problem (https://vborg.vbsupport.ru/showthread.php?t=223800)

persiangulf 09-23-2009 11:53 AM

encoding problem
 
Hi I want to show last topics of vbulletin in my web site and issue the following query but when i read them from database i get the result in incorrect encoding(encoding of database and tables are utf-8).
SELECT * FROM vbulletin_thread ORDER BY threadid DESC LIMIT 15
how can i get them in correct encoding

Lynne 09-23-2009 02:11 PM

Can we see the exact code you are using and the exact error you get? (And perhaps replace * with just the fields you need.)

persiangulf 09-23-2009 03:35 PM

i want title and postusername fields of thread table. the collation of tables and database is utf8_persian_ci and i need it as utf8_persian_ci.

I saw the content of database with phpmyadmin it is exactly that i get(باز شدن فروشگاه سایت not باز شدن فروشگاه سایت).

I think i should convert the content of fields but i don't know how and don't know what charset is set into database

persiangulf 09-26-2009 06:53 AM

I'm waiting for answer, thanks.


All times are GMT. The time now is 01:06 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.00998 seconds
  • Memory Usage 1,709KB
  • 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
  • (4)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