The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 1bea396e authored by Demian Katz's avatar Demian Katz
Browse files

Merge pull request #405 from vufind-org/koha-utf8

Fixed database connection to use UTF-8 encoding.
parents 464b33a5 b14e89f0
No related merge requests found
......@@ -83,7 +83,8 @@ class Koha extends AbstractBase
';port=' . $this->config['Catalog']['port'] .
';dbname=' . $this->config['Catalog']['database'],
$this->config['Catalog']['username'],
$this->config['Catalog']['password']
$this->config['Catalog']['password'],
[PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8']
);
// Throw PDOExceptions if something goes wrong
$this->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment