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)
#463
cruelwar (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
translate (UTF-8) 3 Months, 1 Week ago Karma: 0  
Hi everyone,
I Wish to translate DewNewPHPLinks on Russian. There was a problem, it is necessary to change the coding on utf-8. That the information entered in databases in utf-8 and the site opened in this charset=utf-8. Prompt please, that I need to change in a code, in what files that there was a utf-8. Thanks.
DewNewPHPLinks - best
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#464
cruelwar (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Re:translate (UTF-8) 3 Months, 1 Week ago Karma: 0  
please help...
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#465
Dewed (User)
Administrator
Posts: 220
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:translate (UTF-8) 3 Months, 1 Week ago Karma: 7  
cruelwar wrote:
QUOTE:
please help...


I'm afraid I really don't know much about this.. but.. possibly all you need to do is use an editor capable of reading & writing different formats.

I use Notepad ++ from this site http://notepad-plus.sourceforge.net/uk/site.htm
if you open a file, then use the "format" menu to select "Encode in UTF-8" and then save the file, it should then be using the UTF-8 character set.. but again.. I really don't know a whole lot on this topic.
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#466
cruelwar (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Re:translate (UTF-8) 3 Months, 1 Week ago Karma: 0  
Helo Dewed
You have not understood me. How to make, that utf-8 was the standard coding. That the information added from a site would enter the MySQL in format utf-8. I know that add @mysql_query (" SET NAMES ' utf8 ' "; But I do not know where.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#467
Dewed (User)
Administrator
Posts: 220
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:translate (UTF-8) 3 Months, 1 Week 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.
#468
cruelwar (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Re:translate (UTF-8) 3 Months ago Karma: 0  
David you the genius.
All works. If you want, I shall send you Russian localization as I shall complete.
Thanks!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
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