ID: 44513 Updated by: [EMAIL PROTECTED] Reported By: juan at multiporte dot com dot br -Status: Open +Status: Feedback -Bug Type: Unknown/Other Function +Bug Type: Strings related Operating System: WinXP PHP Version: 5.2.5 New Comment:
Works just fine for me using latest CVS snapshot. Try with this: For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi But I'd guess you're just not using it properly and you're not really passing valid UTF-8 data to it.. Previous Comments: ------------------------------------------------------------------------ [2008-03-23 20:14:03] juan at multiporte dot com dot br Description: ------------ When using htmlspecialchars with charset UTF-8 in Windows, this not display anything if have special chars. But, if I use utf8_encode function, work nice. I'm tested in Apache 2.0 and PHP 5.2.5. Reproduce code: --------------- <?php var_dump(htmlspecialchars('março', ENT_QUOTES, 'UTF-8')); ?> Expected result: ---------------- março (in UTF-8) Actual result: -------------- (empty) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44513&edit=1
