![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 495 Pomógł: 2 Dołączył: 5.02.2006 Skąd: Wrocław Ostrzeżenie: (0%) ![]() ![]() |
Dla filtrowania StringToUpper dodanego do pola formularza nie zamienia mi na wielkie litery polskich znaków.
W pliku index.php mam: date_default_timezone_set('Europe/London'); setlocale(LC_CTYPE, 'pl_PL.UTF-8'); mb_internal_encoding('UTF-8'); iconv_set_encoding('input_encoding', 'UTF-8'); iconv_set_encoding('output_encoding', 'UTF-8'); iconv_set_encoding('internal_encoding', 'UTF-8'); W jaki sposób ustawić globalne kodowanie dla ZEND FRAMEWORK w wersji 1.5 na utf-8? |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 113 Pomógł: 5 Dołączył: 12.09.2006 Skąd: Pruszków/Warszawa Ostrzeżenie: (0%) ![]() ![]() |
A wystarczylo w kod zajrzec. Zend_Filter_StringToUpper uzywa funkcji mb_strtoupper, a wiecej o niej mozna poczytac w manualu PHP. Stamtad tylko dorzuce ten fragment:
Kod By contrast to strtoupper(), 'alphabetic' is determined by the Unicode character properties. Thus the behaviour of this function is not affected by locale settings and it can convert any characters that have 'alphabetic' property, such as a-umlaut (ä).
For more information about the Unicode properties, please see http://www.unicode.org/unicode/reports/tr21/ Ten post edytował chlebik 18.08.2008, 23:52:38 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 07:08 |