briedis Posted May 14, 2010 Report Share Posted May 14, 2010 (edited) nu piem. headeris ir bez si simbola, bet savukart pats teksts zem headera sakas ar so simbolu.. un .txt faili tiek saglabati utf-8 formata. Uz localhost darbojas precizi, bet webs ir nohostets ..un rada sadus glukus.. kaa ari sametis kopaa headeri ar tekstu.. nevis utf-8, bet gan utf-8 WITHOUT BOM formātā... un to vajag izdarīt ar visiem failiem, kas tiek kaut kur iekļauti, attēloti. Edited May 14, 2010 by briedis Quote Link to comment Share on other sites More sharing options...
marcis Posted May 15, 2010 Report Share Posted May 15, 2010 localhost drošvien ir windows, bet cits ir *nix. \r\n - windows newline \n - *nix newline \n\r - mac newline (ja pareizi atceros) Quote Link to comment Share on other sites More sharing options...
briedis Posted May 15, 2010 Report Share Posted May 15, 2010 (edited) localhost drošvien ir windows, bet cits ir *nix. \r\n - windows newline \n - *nix newline \n\r - mac newline (ja pareizi atceros) \r\n - win \n - nix \r - mac Bet tam noteikti nevajadzētu radīt gļuhainus simbolus, jo lokāli uz win rakstu \r\n, pēcāk kopēju uz nix un viss strādā normāli. Nu esi nočekojis visus failus, kas tiek inklūdoti, vai tur nav tas BOM simbols palicis? EDIT: Tad problēma atrisināta? Edited May 15, 2010 by briedis Quote Link to comment Share on other sites More sharing options...
marcis Posted May 15, 2010 Report Share Posted May 15, 2010 Izslēdz magic_quotes un neliec nekādu addslashes() vai tml brīnumus. Quote Link to comment Share on other sites More sharing options...
marcis Posted May 16, 2010 Report Share Posted May 16, 2010 magic_quotes ir depricated toolis, slēdz vien viņu ārā un pierodi strādāt lieki neizvarojot datus. 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.