Find programmers and grapic design experts at ScriptLance.com
<? DEW-CODE.COM  
Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Re:translate (UTF-8) (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:translate (UTF-8)
#467
Dewed (User)
Administrator
Posts: 250
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:translate (UTF-8) 4 Months, 3 Weeks ago Karma: 7  
Ahah.. Ok I think I understand now. I had a similar problem when using the Xoops CMS after upgrading to MySQL5 (part of the reason that my site has been completly rewritten)

Try adding these queries right after the database connection is made in
include/common.php

Code:

if($db = @mysql_pconnect($dbhost, $dbuser, $dbpasswd)){ mysql_select_db($dbname, $db); // added to set mysql to use UTF8 on queries mysql_query('SET character_set_results="utf8"'); mysql_query("SET CHARACTER SET utf8"); mysql_query("SET NAMES 'utf8'");
Also, you may want to change "@mysql_pconnect" to "@mysql_connect" fewer and fewer servers use persistent connections these days.
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
      Topics Author Date
    emo
translate (UTF-8)
cruelwar 2008/08/13 09:22
    thread link
thread linkthread link Re:translate (UTF-8)
cruelwar 2008/08/14 06:50
    thread link
thread linkthread linkthread link Re:translate (UTF-8)
Dewed 2008/08/14 12:34
    thread link
thread linkthread link Re:translate (UTF-8)
cruelwar 2008/08/14 15:11
    thread link
thread linkthread linkthread link Re:translate (UTF-8)
Dewed 2008/08/14 16:30
    thread link
thread linkthread link Re:translate (UTF-8)
cruelwar 2008/08/15 03:32
    thread link
thread linkthread linkthread link Re:translate (UTF-8)
Dewed 2008/08/15 07:18
    thread link
thread linkthread link Re:translate (UTF-8)
cruelwar 2008/08/15 03:32
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Newsflash

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008