WordPress.org

Ready to get started?Download WordPress

Forums

phpBB Topics Portal
[resolved] Any way to parse the characters using a different encoding? (6 posts)

  1. unknownx
    Member
    Posted 2 years ago #

    My site is actually in Thai, and when the forum gets shown onto the front page, the title of the posts show up as "????" instead on Thai characters. I know that it has to do with the encoding, so is there anyway to parse it correctly? My database is in UTF-8 format. Thanks!

    http://wordpress.org/extend/plugins/phpbb-topics-portal/

  2. macmiller
    Member
    Plugin Author

    Posted 1 year ago #

    Actually it should work with any character set. The code php code that parses and formats the list doesn't make any distinction about character set. Are you still having the problem? Can you post your web site URL?

  3. generalred1
    Member
    Posted 1 year ago #

    i have a same problem like unknownx.
    i use a koren and my db is a utf-8

    http://kshangdo.cafe24.com/wordpress

    in my hone you can see the odd chracter in second wodget below.
    that is used by the phpbb topics portal.

    how i remedy this?

    thanks for reading a my short english

  4. macmiller
    Member
    Plugin Author

    Posted 1 year ago #

    Find this code in phpbb_topics_portal_Gugs.php

    // open a phpBB connection
       if (!isset($connphpBB_b) || ($connphpBB_b === FALSE)) {
           $connphpBB_b = mysql_connect($dbhost,$dbuser,$dbpasswd,TRUE);
          $returnvar_b['connphpBB'] = $connphpBB_b;
       }

    and add one line to set the char set to UTF8

    as follows:

    // open a phpBB connection
       if (!isset($connphpBB_b) || ($connphpBB_b === FALSE)) {
          $connphpBB_b = mysql_connect($dbhost,$dbuser,$dbpasswd,TRUE);
          mysql_set_charset('utf8',$connphpBB_b);
          $returnvar_b['connphpBB'] = $connphpBB_b;
       }

    Will try to update version with this fix.

  5. macmiller
    Member
    Plugin Author

    Posted 1 year ago #

    I released a new version 1.2 which fixes this and a couple of other things I noticed.

  6. generalred1
    Member
    Posted 1 year ago #

    Thank a lot
    My homepage is fine.

    thanks again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic