[dokuwiki] mysql class patch to enforce use of specified charset

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).

Other related posts: