Re: [PHP] Removing strange chars from array (or string)

2004-09-15 Thread Zoran Lorkovic
> From: "Zoran Lorkovic" <[EMAIL PROTECTED]> > > > Well, when parsing html page data I want to save is saved in txt file. > > But when saving in txt file I got some strange chars like small square > > (this I see when open in NotePad). > [snip] > > Am I missing something? > > You forgot to post you

Re: [PHP] Removing strange chars from array (or string)

2004-09-15 Thread Chris Dowell
Zoran Sounds like your problem is with line endings - your unix (i presume) box ends its lines with a newline (\n) Windows ends lines with a carraige return followed by a newline (\r\n or CRLF) Notepad doesn't recognise a newline on its own as either a valid character or a valid line ending, s

Re: [PHP] Removing strange chars from array (or string)

2004-09-15 Thread John Holmes
From: "Zoran Lorkovic" <[EMAIL PROTECTED]> Well, when parsing html page data I want to save is saved in txt file. But when saving in txt file I got some strange chars like small square (this I see when open in NotePad). [snip] Am I missing something? You forgot to post your code. If you're only usi

[PHP] Removing strange chars from array (or string)

2004-09-15 Thread Zoran Lorkovic
Hi Well, when parsing html page data I want to save is saved in txt file. But when saving in txt file I got some strange chars like small square (this I see when open in NotePad). When I try to open in WordPad this strange chars (squares) are recognized as new lines so in my file I got many em