[wp-hackers] Little hack to add a proper UTF-8 support to 1.2
Pierre Machard
pmachard at debian.org
Mon Aug 16 19:31:40 UTC 2004
Hi,
I needed to add a proper support of UTF-8 in my blog. I modified the
file wp-blog-header.php to add:
if (!isset($doing_rss) || !$doing_rss) {
// It is presumptious to think that WP is the only thing that might change on the page.
@header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
@header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
@header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
@header("Cache-Control: post-check=0, pre-check=0", false);
@header("Pragma: no-cache"); // HTTP/1.0
@header ('X-Pingback: '. get_settings('siteurl') . '/xmlrpc.php');
@header ('Content-Type: text/html; charset=utf-8');
^^^^^^^^^^^^^^^^^
I know that this hack is dirty, however could you please fix it in your
next release.
Cheers,
--
Pierre Machard
<pmachard at debian.org> http://debian.org
GPG: 1024D/23706F87 : B906 A53F 84E0 49B6 6CF7 82C2 B3A0 2D66 2370 6F87
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : /pipermail/hackers_wordpress.org/attachments/20040816/0716d884/attachment.bin
More information about the hackers
mailing list