diff options
| author | Rasmus Lerdorf <rasmus@php.net> | 2010-03-23 18:08:06 +0000 |
|---|---|---|
| committer | Rasmus Lerdorf <rasmus@php.net> | 2010-03-23 18:08:06 +0000 |
| commit | 906dd4eac5d98daa172ddf40c04f684474a05338 (patch) | |
| tree | c20cce1e1d33397d6b576ada265fcb2ce59f3759 /ext/standard/tests/strings/htmlentities.phpt | |
| parent | b7f26585276b27ebaba4e006d141a8180c76f130 (diff) | |
| download | php-git-906dd4eac5d98daa172ddf40c04f684474a05338.tar.gz | |
Switch default_charset, if not specified, from ISO-8859-1 to UTF-8
I have been wanting to make this change for years, but there is a small
chance of BC issues, so it shouldn't go into a minor release.
Diffstat (limited to 'ext/standard/tests/strings/htmlentities.phpt')
| -rw-r--r-- | ext/standard/tests/strings/htmlentities.phpt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/standard/tests/strings/htmlentities.phpt b/ext/standard/tests/strings/htmlentities.phpt index 743651ecad..f2e107a735 100644 --- a/ext/standard/tests/strings/htmlentities.phpt +++ b/ext/standard/tests/strings/htmlentities.phpt @@ -1,16 +1,16 @@ --TEST-- -HTML entities +HTML entities of ISO-8859 chars --INI-- output_handler= --FILE-- <?php setlocale (LC_CTYPE, "C"); -$sc_encoded = htmlspecialchars ("<>\"&εΔ\n"); +$sc_encoded = htmlspecialchars ("<>\"&εΔ\n",ENT_COMPAT,"ISO-8859-1"); echo $sc_encoded; -$ent_encoded = htmlentities ("<>\"&εΔ\n"); +$ent_encoded = htmlentities ("<>\"&εΔ\n",ENT_COMPAT,"ISO-8859-1"); echo $ent_encoded; -echo html_entity_decode($sc_encoded); -echo html_entity_decode($ent_encoded); +echo html_entity_decode($sc_encoded,ENT_COMPAT,"ISO-8859-1"); +echo html_entity_decode($ent_encoded,ENT_COMPAT,"ISO-8859-1"); ?> --EXPECT-- <>"&εΔ |
