From 4d01642a8969312525b73338b17f6c96178c4b2b Mon Sep 17 00:00:00 2001 From: Don MacAskill Date: Mon, 5 Jan 2015 11:09:42 -0800 Subject: [PATCH] Fix comment error around UTF-8 and PDO --- _posts/05-05-01-PHP-and-UTF8.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/05-05-01-PHP-and-UTF8.md b/_posts/05-05-01-PHP-and-UTF8.md index 0066fba..467e0df 100644 --- a/_posts/05-05-01-PHP-and-UTF8.md +++ b/_posts/05-05-01-PHP-and-UTF8.md @@ -86,7 +86,7 @@ $string = mb_substr($string, 0, 15); // Connect to a database to store the transformed string // See the PDO example in this document for more information -// Note the `set names utf8mb4` commmand! +// Note the `charset=utf8mb4` in the Data Source Name (DSN) $link = new PDO( 'mysql:host=your-hostname;dbname=your-db;charset=utf8mb4', 'your-username',