hEiti Posted November 13, 2010 Report Share Posted November 13, 2010 $dati = $row->description; echo substr($dati, 0, 85); Bet tas kas ir ierakstiits description tabula @ mysql ir Krievu valoda ... problema ir taja kad pedejo character vinsh izprinte ka neatpaziitu jautajuma zimi melna fona ... Skatos pa internetu neizdodas atrast logisku paskaidrojumu, varbut kads var padomu dot ? Quote Link to comment Share on other sites More sharing options...
mickys Posted November 13, 2010 Report Share Posted November 13, 2010 (edited) mb_substr Edited November 13, 2010 by mickys Quote Link to comment Share on other sites More sharing options...
hEiti Posted November 13, 2010 Author Report Share Posted November 13, 2010 mb_substr Nomainiju uz mb_subst neatrisinaja problemu :( Ar utf8 ari problema nav saistita jo ja uzlieku drukat visu ieraxtu pilna saraksta tad visi simboli radas, bet ja uzlieku subst tad pedejais kroplojas .. :) Quote Link to comment Share on other sites More sharing options...
daGrevis Posted November 13, 2010 Report Share Posted November 13, 2010 Visu skriptu sākumā "iemet": mb_internal_encoding( 'UTF-8' ); Quote Link to comment Share on other sites More sharing options...
hEiti Posted November 14, 2010 Author Report Share Posted November 14, 2010 Liels paldies par tavu paliidzibu, shis atrisinaja manu problemu, lika sajusties mazliet neizgliitotam, bet nekas esmu vismaz uz pareiza celja .. Velreiz paldies Tev :) Visu skriptu sākumā "iemet": mb_internal_encoding( 'UTF-8' ); Quote Link to comment Share on other sites More sharing options...
daGrevis Posted November 14, 2010 Report Share Posted November 14, 2010 Nav problēmu. =) 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.