|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-20 14:47 UTC] tony2001@php.net
[2006-06-28 01:00 UTC] php-bugs at lists dot php dot net
[2008-04-27 22:19 UTC] bitagenda at gmail dot com
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 06:00:02 2025 UTC |
Description: ------------ Hi, I've some expression in database in UTF8. When i try to use the htmlentities functions ex : htmlentities("zoo...", ENT_QUOTES, "UTF-8"); the script returns sometimes nothing. PS : I've tested on a PHP 5.1.2-1.dotdeb.2 (and i can't upgrade at work)... i will try at home with a PHP 5.1.4 version Reproduce code: --------------- // works always $str = " "; echo htmlentities(html_entity_decode ("ζωολογικός".$str."κήπος/πάρκο", ENT_QUOTES, "UTF-8"), ENT_QUOTES, "UTF-8"); // works sometimes $str = " "; echo htmlentities(html_entity_decode ("ζωολογικός".$str."κήπος/πάρκο", ENT_QUOTES, "UTF-8"), ENT_QUOTES, "UTF-8");