Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Incorrect job with cyrillics


dallas

Recommended Posts

At localization RC v2.2, the following mistake has come to light:

The mistake of a database 1406-Data too long for column stood out

How to correct:

We open a file: admin\includes\functions\database.php also it is edited it.

After lines

if (USE_PCONNECT == 'true') {

$$link = mysql_pconnect($server, $username, $password);

} else {

$$link = mysql_connect($server, $username, $password);

}

It is necessary to insert a line

mysql($database,'SET NAMES CP1251');

It for the charset win-1251

That is the name of your charset

For example:mysql($database,'SET NAMES UTF-8');

 

 

After that all perfectly works!

Link to comment
Share on other sites

At localization RC v2.2, the following mistake has come to light:

The mistake of a database 1406-Data too long for column stood out

How to correct:

We open a file: admin\includes\functions\database.php also it is edited it.

After lines

if (USE_PCONNECT == 'true') {

$$link = mysql_pconnect($server, $username, $password);

} else {

$$link = mysql_connect($server, $username, $password);

}

It is necessary to insert a line

mysql($database,'SET NAMES CP1251');

It for the charset win-1251

That is the name of your charset

For example:mysql($database,'SET NAMES UTF-8');

After that all perfectly works!

 

 

p.s:

As there was the same it is necessary to do and with a file

includes\functions\database.php

That also the site correctly worked, and not just adminisrator area

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...