|
Posted by Peter Münster on 08/30/06 06:12
Hello,
str_word_count() does not seem to work with locale "fr_FR.utf8".
The output of the following script is
string(10) "fr_FR.utf8" Array ( [0] => bi [1] => re )
I think, that "bière" should be recognized as word.
Here is the test-script:
<?
echo '<html><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head><body>';
var_dump(setlocale(LC_ALL, 'fr_FR.utf8'));
print_r(str_word_count('bière', 1));
echo '</body></html>';
?>
Could someone help please?
My PHP version is 5.1.2.
Greetings, Peter
--
email: pmrb at free.fr
http://pmrb.free.fr/contact/
Navigation:
[Reply to this message]
|