[wp-trac] [WordPress Trac] #11821: setup-config.php breaks UTF-8 in wp-config.php
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 8 10:40:34 UTC 2010
#11821: setup-config.php breaks UTF-8 in wp-config.php
-----------------------------+----------------------------------------------
Reporter: SergeyBiryukov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Upgrade/Install | Version:
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
This code is currently used in {{{setup-config.php}}} to display a {{{wp-
config.php}}} content:
{{{
foreach( $configFile as $line ) {
echo htmlentities($line);
}
}}}
It makes non-English comments unreadable. It probably should be:
{{{
foreach( $configFile as $line ) {
echo htmlentities($line, ENT_COMPAT, 'UTF-8');
}
}}}
Thanks to Lecactus for the report.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11821>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list