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(setloc ale(LC_ALL, 'fr_FR.utf8'));
print_r(str_wor d_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
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(setloc ale(LC_ALL, 'fr_FR.utf8'));
print_r(str_wor d_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
Comment