shouldn't that be .. mystring = replace(mystring, chr(0),"","all");
J > -----Original Message----- > From: Jeremy Halliwell [mailto:[EMAIL PROTECTED]] > Sent: 21 January 2003 15:04 > To: inFusion Support List > Subject: RE: [iMS] Null characters > > > The mail was generated by cfx_imsmail, with the body content taken from a > Word document saved as HTML, parsed by ColdFusion into a database and from > there into a text only string variable. > > Looking on the Macromedia Forums it appears that CF uses ascii nulls > internally to terminate string variables, and indeed the following test > seems to bear this out: > > <cfscript> > mystring = "testtest"; > hasnull = "no"; > > if(find(chr(0),mystring)) > hasnull = "yes"; > > > </cfscript> > > <cfoutput>Has null? #hasnull#</cfoutput> > > Unfortunately it doesn't seem to be possible to remove these > characters, as > the following code > > mystring = replace(mystring, chr(0),"all"); > > returns the error > > Parameter 2 of function Replace which is now "" must be a non-empty > string > > I know it's outside the scope of the list, but if anyone knows > anything more > about this I'd be interested to know of any solutions. > > Thanks > > Jeremy > > > -----Original Message----- > > From: Howie Hamlin [mailto:[EMAIL PROTECTED]] > > Sent: 21 January 2003 14:14 > > To: inFusion Support List > > Subject: Re: [iMS] Null characters > > > > > > A NULL is an ASCII 0. Somehow, the email contained a NULL > > and was rejected by the other server. How was the mail > > generated? I've heard of some broken email clients creating > > mails with embedded NULLs. > > > > Regards, > > > > Howie > > > > ----- Original Message ----- > > From: "Jeremy Halliwell" <[EMAIL PROTECTED]> > > To: "inFusion Support List" <[EMAIL PROTECTED]> > > Sent: Tuesday, January 21, 2003 5:24 AM > > Subject: [iMS] Null characters > > > > > > > What are nul (null?) characters in the context of SMTP > > > > > > ... while talking to localhost: > > > >>> DATA > > > <<< 524 5.6.0 message contains NUL characters > > > 554 <[EMAIL PROTECTED]>... Remote protocol error > > > > > > Jeremy ==^======================================================= This list server is Powered by iMS "The Swiss Army Knife of Mail Servers" -------------------------------------- To leave this list please complete the form at http://www.coolfusion.com/iMSSupport.cfm Need an iMS Developer license? Sign up for a free license here: http://www.coolfusion.com/iMSDevelopers.cfm List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/ Note: You are subscribed as [email protected] ==^=======================================================
