|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-12 19:43 UTC] judas dot iscariote at gmail dot com
[2006-06-12 21:37 UTC] nlopess@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 07:00:01 2025 UTC |
Description: ------------ Executing setlocale(LC_ALL, 'es_ES'); $str = "La naci?n es grande"; $words = split("[^[:alpha:]']+", $str); words in $str are not recognized as Spanish. For example, 'naci?n' is still split at the '?'. setlocale returns es_ES indicating the locale was set. Expected result: ---------------- The original text split into correct words. According to the regexp docs, [:alpha:] should acquire the Spanish characters if the locale is set. Actual result: -------------- Words are split at non-ASCII characters (??? etc).