From c9e5c2659e820d92d654b257fb8fe6c33ad7fc54 Mon Sep 17 00:00:00 2001 From: Josh Lockhart Date: Wed, 20 Jun 2018 08:33:44 -0400 Subject: [PATCH] Remove outdated Google Pagespeed link in UTF8 section --- _posts/05-05-01-PHP-and-UTF8.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/_posts/05-05-01-PHP-and-UTF8.md b/_posts/05-05-01-PHP-and-UTF8.md index c2d4af9..00fdc05 100644 --- a/_posts/05-05-01-PHP-and-UTF8.md +++ b/_posts/05-05-01-PHP-and-UTF8.md @@ -63,10 +63,14 @@ Further Reading for why. Use the `mb_http_output()` function to ensure that your PHP script outputs UTF-8 strings to your browser. -The browser will then need to be told by the HTTP response that this page should be considered as UTF-8. The historic -approach to doing that was to include the [charset `` tag](http://htmlpurifier.org/docs/enduser-utf8.html) in -your page's `` tag. This approach is perfectly valid, but setting the charset in the `Content-Type` header is -actually [much faster](https://developers.google.com/speed/docs/best-practices/rendering#SpecifyCharsetEarly). +The browser will then need to be told by the HTTP response that this page should be considered as UTF-8. Today, it is common to set the character set in the HTTP response header like this: + +{% highlight php %} +` tag](http://htmlpurifier.org/docs/enduser-utf8.html) in your page's `` tag. {% highlight php %}