Page MenuHomePhabricator

D16279.diff
No OneTemporary

D16279.diff

diff --git a/src/aphront/storage/connection/mysql/AphrontMySQLDatabaseConnection.php b/src/aphront/storage/connection/mysql/AphrontMySQLDatabaseConnection.php
--- a/src/aphront/storage/connection/mysql/AphrontMySQLDatabaseConnection.php
+++ b/src/aphront/storage/connection/mysql/AphrontMySQLDatabaseConnection.php
@@ -91,7 +91,7 @@
$ok = @mysql_set_charset('utf8mb4', $conn);
if (!$ok) {
- mysql_set_charset('utf8', $conn);
+ mysql_set_charset('binary', $conn);
}
return $conn;
diff --git a/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php b/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php
--- a/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php
+++ b/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php
@@ -74,7 +74,7 @@
$ok = @$conn->set_charset('utf8mb4');
if (!$ok) {
- $ok = $conn->set_charset('utf8');
+ $ok = $conn->set_charset('binary');
}
return $conn;

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 31, 5:16 PM (2 d, 7 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7712926
Default Alt Text
D16279.diff (1 KB)

Event Timeline