Actions
Bug #22062
closedInclude BE:forceCharset config option
Status:
Closed
Priority:
Should have
Assignee:
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
Actions