Issue Bug Closed

#22062Include BE:forceCharset config option

Sebastian Roth 02/05/10, 10:36 updated 06/25/10, 23:15

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.