Jump to content
php.lv forumi

teksta apstrāde no faila.txt


blondine

Recommended Posts

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 by briedis
Link to comment
Share on other sites

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 by briedis
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...