Commit ccd436a3 authored by Cédric Anne's avatar Cédric Anne

Deprecate alternative BD connection encoding

parent c3b757df
......@@ -3,6 +3,11 @@
The present file will list all changes made to the project; according to the
[Keep a Changelog](http://keepachangelog.com/) project.
## [9.5.3] 2020-11-25
### Deprecated
- Usage of alternative DB connection encoding (`DB::$dbenc` property).
## [9.5.2] 2020-10-07
### API changes
......
......@@ -198,6 +198,9 @@ class DBmysql {
$this->connected = false;
$this->error = 2;
} else {
if (isset($this->dbenc)) {
Toolbox::deprecated('Usage of alternative DB connection encoding (`DB::$dbenc` property) is deprecated.');
}
$dbenc = isset($this->dbenc) ? $this->dbenc : "utf8";
$this->dbh->set_charset($dbenc);
if ($dbenc === "utf8") {
......
Markdown is supported
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