Obcinanie polskich liter

makler

Avatar: makler

2006-10-30 11:44

Zauważyłem, że jeśli pierwsza litera w wyrazie w zamówieniu jest polskim znakiem np Ś, Ż, Ć itp to zostaje obcięta i nie wyświetla się jeśli ulica jest Żbicka w zamówieniu pojawia się bicka, jeśli miasto jest Łódź w zamówieniu jest dź. W czym może być problem?

treewood (OpenSolution)

Avatar: treewood

2006-10-30 12:27

makler - podaj adres sklepu gdzie Ci sie cos takiego dzieje. Testowalem w polskiej wersji jezykowej i dziala poprawnie

makler

Avatar: makler

2006-10-30 21:37

http://www.makler.opole.pl

treewood (OpenSolution)

Avatar: treewood

2006-10-31 07:32

makler - faktycznie, ale nie mam pojecia czemu ... moze dziwne ustawienia serwera? jaka wersja PHP itd?

makler

Avatar: makler

2006-10-31 09:42

Wersja Apache 1.3.37 (Unix)
Wersja MySQL 4.1.13-standard-log
Wersja PHP 5.1.6
Informacje o PHP Kliknij, by zobaczyć
Wersja PERL 5.8.7
Wersja Kernel 2.6.17.6
Typ komputera i686
Wersja cPanel 10.9.0-STABLE-58


Więcej o PHP
System Linux parawan.webd.pl 2.6.17.6 #1 SMP Thu Jul 20 23:11:29 CEST 2006 i686
Build Date Oct 18 2006 22:05:51
Configure Command './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-magickwand=/usr/local/ImageMagick' '--prefix=/usr' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-memory-limit' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-ming=' '--enable-magic-quotes' '--with-mysqli=/usr/bin/mysql_config' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--enable-xslt' '--with-xslt-sablot' '--enable-safe-mode' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--with-xmlrpc' '--with-zlib' '--with-mcrypt' '--without-pdo-sqlite' '--with-pdo-mysql' '--with-sqlite' '-with-dom' '-with-xsl' '--enable-exif'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/Zend/etc/php.ini
PHP API 20041225
PHP Extension 20050922
Zend Extension 220051025
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.zlib, https, ftps
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, zlib.*

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
with eAccelerator v0.9.5-rc1, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
with Zend Extension Manager v1.0.10, Copyright (c) 2003-2006, by Zend Technologies
with Zend Optimizer v3.0.1, Copyright (c) 1998-2006, by Zend Technologies

wewior (OpenSolution)

Avatar: wewior

2006-11-01 12:12

w pliku config/general.php wpisz na samej gorze linie:

setlocale( LC_ALL, 'pl_PL' );

ale sprawdz czy wszystko dziala poprawnie bo czasem to tez zmienia ustawienia dla separatora wartosci dziesietnych... tzn zamiast kropki w cenie mozesz miec przecinek, wiec sprawdz dobrze

makler

Avatar: makler

2006-11-20 13:44

Dodanie setlocale... rzeczywiście poprawia obcinanie liter, ale jak pisał wewior są wtedy problemy z sumowaniem cen. Mianowicie cena jest zaokrąglana do pełnych złotych. Jakieś rozwiążanie..?

wewior (OpenSolution)

Avatar: wewior

2006-12-01 14:36

jesli dzieje sie tak jak opisal makrel to powinno zadzialac ustawienie ponizej:
setlocale( LC_NUMERIC, null );

Do góry
o nas | kontakt