Posted by Chung Leong on 11/18/05 19:44
Try this: $text = file_get_contents("test.txt"); echo preg_match('/./u', $text); The u modifier tell PCRE the input is UTF-8. If it's not properly encoded, then it'll return false.
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming