|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-24 09:55 UTC] tony2001@php.net
[2006-10-25 12:08 UTC] j dot hakvoort at publiceren dot net
[2006-10-25 12:11 UTC] tony2001@php.net
[2006-10-25 12:26 UTC] j dot hakvoort at publiceren dot net
[2006-10-25 12:30 UTC] tony2001@php.net
[2007-07-11 22:40 UTC] j dot hakvoort at publiceren dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 11:00:02 2025 UTC |
Description: ------------ Hi! I've been working on the encoding issue to make a site compatible for any language, but the problem is that when you print special characters in PHP it will be malformed. So the advice I received is to encode the PHP code to UTF-8, but when I do this however the script will fail because PHP doesn't read UTF-8 encoded PHP code! Is this a bug? I am using 4.4.4 Best Regards, Jan Jaap Hakvoort Reproduce code: --------------- <?php $str = '????? ?'; $match = preg_match('?[ ]+?',$str); ?> Expected result: ---------------- $match will be set to true. Actual result: -------------- PHP error, unexpected character [block]...