MantisBT: master-1.3.x 805ef0cb

Author Committer Branch Timestamp Parent
dregad dregad master-1.3.x 2016-06-18 16:42:22 master-1.3.x d9ea9992
Affected Issues  0020431: Use utf8mb4 charset for new MySQL installations
 0021101: Issues with emoji's are truncated before getting saved

New database API function db_mysql_fix_utf8()

This new function replaces 4-byte UTF-8 chars by Unicode U+FFFD
character for MySQL databases.

This is a temporary workaround to avoid data getting truncated on MySQL
databases using native utf8 encoding which only supports 3 bytes chars,
until we're able to support utf8mb4 charset (see issue 0020431).

Fixes 0021101

mod - core/database_api.php Diff File