You are here: locale fr_FR.utf8 and str_word_count() « PHP Programming Language « IT news, forums, messages
locale fr_FR.utf8 and str_word_count()

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация