element Posted June 27, 2009 Report Share Posted June 27, 2009 peec funkcijas izsaukshanas netiek nekas atgriezts, tiek nojaukts viss paareejais izvads. piem. function funkcija($txt){ $txt = strtolower($txt); //... //cita teksta apstraade //... return $txt; } mirklii, kad iznjem strtolower, viss izvads atkal straadaa normaali. stringi tiek njemti no mysql cp-1257, izvadiiti kaa utf-8, kur papildus tiek apstraadaati un atkal izvadiiti citaa formaa. vai vareetu buut nojausma, kur ir probleema? Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted June 27, 2009 Report Share Posted June 27, 2009 Tātad viss strādā (izņemot burtu samazinašanu uz mazajiem), ja aizkomentē funkcijā rindiņu: $txt = strtolower($txt); ? Varbūt vajag mb_strtolower() izmantot, ja reiz unicode... Quote Link to comment Share on other sites More sharing options...
element Posted June 27, 2009 Author Report Share Posted June 27, 2009 (edited) ar upper f-ju arii tas pats.. hmm.. izproveesim mb_ variantu edited: strange, kodeejumaa laikam kaut kur vaina, jo tagad proveeju citaa vietaa, kur strtolower aizgaaja, tachu mb_ variants nee. varbuut varat izskaidrot kaapeec taa (parasti) notiek? Edited June 27, 2009 by element Quote Link to comment Share on other sites More sharing options...
Val Posted June 30, 2009 Report Share Posted June 30, 2009 izprovēji arī http://lv.php.net/manual/en/function.mb-internal-encoding.php pirms mb_strtolower? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.