Fog Creek Software
Discussion Board




Another question about scoutSubmit.asp

Hello,
    I seemed to have finally solved the problem I had formatting my case messages in WinInet based autosubmissions thanks to some help from this forum.  I have one more question about scoutSubmit.asp.  I pass in a Default Message.  In my case, the default message is two sentences seperated by two blank spaces.  However, when I get the default message back as a response from scoutSubmit, the second space between the sentences is always converted to " " which I then have to do a search and replace to make displayable.  I am passing a 1 for "Friendly Response".  I am not sure how this would be displayed in a browser, but my AfxMessageBox doesn't know what to do with " ", so this forces me to do this manual search and replace.  Any feedback on a better way to handle this would be appreciated.

Bryan Wilcox
Wednesday, April 28, 2004

Right now, scoutsubmit.asp has
Sub Success( sMsg )
    
    If Request("FriendlyResponse") = "1" Then
        Response.Write UnicodeClean(sMsg)
    Else
        %><?xml version="1.0"?><Success><% =Server.HTMLEncode(sMsg) %></Success><%
    End If

End Sub

See that Server.HTMLEncode in there?  Take that function call out....

Michael H. Pryor
Fog Creek Software
Wednesday, April 28, 2004

*  Recent Topics

*  Fog Creek Home