Skip to content

Commit 8408fb0

Browse files
committed
Added comment, added changelog entry.
1 parent 5885dcc commit 8408fb0

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

doc/changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# v0.14.3 -> v0.14.4
2+
3+
## Enhancements
4+
5+
- Use utf8mb4 as default encoding in order to support the full unicode range
6+
7+
18
# v0.14.2 -> v0.14.3
29

310
## Tech Preview New API

src/dba/AbstractModelFactory.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,8 @@ public function getDB($test = false) {
855855
}
856856
else {
857857
global $CONN;
858+
// The utf8mb4 is here to force php to connect with that encoding, so you can save emoji's or other non ascii chars (specifically, unicode characters outside of the BMP) into the database.
859+
// If you are running into issues with this line, we could make this configurable.
858860
$dsn = 'mysql:dbname=' . $CONN['db'] . ";host=" . $CONN['server'] . ";port=" . $CONN['port'] . ";charset=utf8mb4";
859861
$user = $CONN['user'];
860862
$password = $CONN['pass'];

0 commit comments

Comments
 (0)