Swear Posted January 28, 2010 Report Share Posted January 28, 2010 No query'a tiek atgriezts nevajadzīgs simbols: � ko vajadzētu likvidēt. ar preg_replace protams māku, bet kā pierakstīt pašu simbolu? piemēram xFF\xFF\. kā lai uzzina kas viņam par nosaukumu? Quote Link to comment Share on other sites More sharing options...
briedis Posted January 28, 2010 Report Share Posted January 28, 2010 Imo, viņam var būt vairākas vērtības, vienkārši tavs pārlūks nezin kā viņu attēlot, tāpēc aizstāj ar šādu defaulto simbolu... vismaz man tā liekas... Bet kāpēc db vispār glabājas tāds simbols? Quote Link to comment Share on other sites More sharing options...
Swear Posted January 28, 2010 Author Report Share Posted January 28, 2010 tas nav no db, nāk no socket. Quote Link to comment Share on other sites More sharing options...
briedis Posted January 28, 2010 Report Share Posted January 28, 2010 Nu ja zini hex kodu, un ja tas simbols ir priekšā vai pakaļā, var izlīdzēties ar kaut ko šādu: // trim the ASCII control characters at the beginning and end of $binary // (from 0 to 31 inclusive) $clean = trim($binary, "\x00..\x1F"); trim funkcijas manuāli visādas lietas sarakstītas :) Quote Link to comment Share on other sites More sharing options...
Swear Posted January 28, 2010 Author Report Share Posted January 28, 2010 Liels paldies! Tas līdzēja:) 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.