Project

General

Profile

Actions

Bug #22062

closed

Include BE:forceCharset config option

Added by Sebastian Roth about 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2010-02-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

My setup is to connect to two mysql databases. Unluckily, the mysql client needs a setting for the charset. This can be provided by the my.cnf (?) which is not easy to handle sometimes or better, it should be handled by the DBAL.

Point is, the default connection for tables like "pages" etc.. works, the client charset is set, but not for secondary "native" databases and their tables.

The patch looks like:
// respect forceCharset option
if(($fc = $GLOBALS['TYPO3_CONF_VARS']['BE']['forceCharset']) != '') {
mysql_set_charset(str_replace('-', '', $fc) ,$link);
}

and must be added in class.ux_t3lib_db.php at line 2236, sorry for the non-standard format.

(issue imported from #M13431)


Files

class.tx_t3lib_db.php.patch (663 Bytes) class.tx_t3lib_db.php.patch Administrator Admin, 2010-02-28 04:23
13431.diff (570 Bytes) 13431.diff Administrator Admin, 2010-06-12 14:07
Actions

Also available in: Atom PDF