Page MenuHomePhabricator
Paste P1415

allow_utf8mb4.diff
ActivePublic

Authored by epriestley on Nov 6 2014, 5:13 PM.
Tags
None
Referenced Files
F230522: allow_utf8mb4.diff
Nov 6 2014, 5:13 PM
Subscribers
None
diff --git a/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php b/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php
index db88d0a..196f5af 100644
--- a/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php
+++ b/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php
@@ -326,7 +326,7 @@ abstract class AphrontBaseMySQLDatabaseConnection
protected function validateUTF8String($string) {
// TODO: Make this `true` eventually, once we make storage adjustment
// mandatory. For now, you can set it to `true` to test things.
- $has_utf8mb4 = false;
+ $has_utf8mb4 = true;
if ($has_utf8mb4) {
if (phutil_is_utf8($string)) {

Event Timeline

epriestley changed the title of this paste from untitled to allow_utf8mb4.diff.
epriestley updated the paste's language from autodetect to autodetect.