[dokuwiki] mysql class patch to enforce use of specified charset
- From: Thomas König, ILLUSTREE <thomas.k@xxxxxxxxxxxx>
- To: <dokuwiki@xxxxxxxxxxxxx>
- Date: Fri, 20 Apr 2007 13:14:21 +0200
Hi list,
i made a simple patch for the mysql auth class to enforce a character set
(because i had problems with german umlauts while authenticating against a
flyspray 0.9.9 database).
You simply have to add
$conf['auth']['mysql']['charset'] = 'utf8';
to your local configuration now and all it does is a
mysql_query('SET CHARACTER SET "' . $this->cnf['charset'] . '"', $con);
when the database connection is established.
Hope this helps anyone,
Thomas
p.s.: Since this is my first patch, I'm not quite sure if everything went right
(patchfile seems quite big).
- Follow-Ups:
- [dokuwiki] Re: mysql class patch to enforce use of specified charset
- From: Andreas Gohr
Other related posts:
- » [dokuwiki] mysql class patch to enforce use of specified charset
- » [dokuwiki] Re: mysql class patch to enforce use of specified charset
- [dokuwiki] Re: mysql class patch to enforce use of specified charset
- From: Andreas Gohr