only. At least that's what I recall from submitted HTML forms.
Regards,
Stephen
> Doesn't UNIX use just a single linefeed as a newline character? If
> you know there are only LFs and no CRs in the string, then:
>
> <cfset cr = Chr(13)>
> <cfset lf = Chr(10)>
> <cfset mystring = Replace(mystring, "#lf#", "#cr##lf#", "all")>
>
>
>
> ----- Original Message -----
> From: "Gyrus" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Saturday, September 27, 2003 2:16 PM
> Subject: SOT: converting double-spaced UNIX lines to CRLF
>
>
> > I've got some HTML documents that I'm converting for a new site,
> > extracting content and re-formatting, etc. I'm use a CF script to
> > do this.
> >
> > I'm not entirely certain, but I think the double-space UNIX-style
> > lines (as per Homesite prompt when I open them) are screwing up
> > the character position calculations I'm doing to extract content.
> > What's the quickest way of converting all these to the usual
> > Win(?) #Chr(13)##Chr(10)#?
> >
> > I'm currently trying:
> >
> > <cfset oldContent = REReplace(oldContent, Chr(13)&Chr(13)&Chr(10),
> > Chr(13)&Chr(10), "ALL")>
> >
> > to no avail (I found a reference on the net to UNIX double-spaced
> > lines being 0D0D0A). I'm searching and searching, but can anyone
> > here help out with a quick 'n' easy method?
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

