Jump to content

ezdb_mysql.class.php for Russian


stasnosikov

Recommended Posts

Gday!

You could add the following line

public function connect($dbuser='', $dbpassword='', $dbhost='localhost')
{
$this->dbh = @mysql_connect($dbhost, $dbuser, $dbpassword, true);
       mysql_query (' SET NAMES utf8 ');  //It is added
if(!$this->dbh)
       ......

in a file /core/classes/ezdb/ezdb_mysql.class.php in the next release phpvms ?

I had problems with the charset in Russian, after addition of this line of problems are not present!

Link to comment
Share on other sites

hi, this code is not working, pilots can't write names in Russian language (gives characters example: Артём Антипов), the download page has the same problem with Russian does not understand and the Sceudules page has the same problem with Russian ...

Link to comment
Share on other sites

hi, this code is not working, pilots can't write names in Russian language (gives characters example: Артём Антипов), the download page has the same problem with Russian does not understand and the Sceudules page has the same problem with Russian ...

hi, It works here an example http://uiii.su/index.php/pilots

It is necessary for you through the adminpanel or through phpmyadmin anew to copy all Russian words. Because without this line "mysql_query (' SET NAMES utf8 ');" the database was stored and registered in the charset cp1251, therefore there was a problem with Russian letters "И" and "ш" ;)

Link to comment
Share on other sites

I've added it to the bug tracker, to look into:

http://bugs.phpvms.net/browse/VMS-253

Thanks, the matter is that on many Russian servers in Mysql global values in cp1251 are established, therefore exist this problem.

Here variables of my hosting:

http://file.qip.ru/file/125989387/d7097b60/values.html

Here tables phpvms:

http://file.qip.ru/file/125989388/47b666f1/tables.html

In this situation there is a problem with the Russian charset without a line - mysql_query('SET NAMES utf8');

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...