give this a shot and see how it works for ya....
<cfset newdescription = replaceNoCase(xtblAllCoPro
Main Topics
Browse All TopicsI have a page that consumes a .NET web service and am trying to replace a couple of characters that are coming down in one of the fields with their HTML equivalents.
Here's the gist of it:
<cfset newdescription = replace(#xtblAllCoProdCatD
Then, when I try to output #newdescription#, it outputs no problem, but still does not replace the characters.
Any help is greatly appreciated.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
And this is from the CF documentation:
chr(10) returns a linefeed character and Chr(13) returns a carriage return character. The two-character string Chr(13) & Chr(10) is the newline string.
You can loop through the string and display the ascii characters using asc() if you want to find out what values are being used.
<cfloop index="kk" from="1" to="#len(string)#">
#asc(mid(string,kk,1))#
</cfloop>
Ok gdemaria: I got your code working. How do I decipher this and actually tell what characters to replace?
65 114 109 115 58 32 76 101 110 110 121 32 80 108 117 115 44 32 76 101 110 110 121 32 73 73 32 80 108 117 115 44 32 76 101 110 110 121 32 77 105 110 105 44 32 80 108 117 115 32 73 73 73 32 38 32 83 116 105 110 103 101 114 32 74 105 98 32 65 114 109 32 119 47 32 71 108 105 100 101 114 60 66 82 62 67 114 97 110 101 115 58 32 78 105 107 101 44 32 83 117 112 101 114 32 65 112 111 108 108 111 44 32 83 117 112 101 114 32 78 111 118 97 44 32 84 105 116 97 110 32 73 73 32 38 32 90 101 117 115 10 68 111 108 108 105 101 115 58 32 72 117 115 116 108 101 114 32 73 86 44 32 72 121 98 114 105 100 32 73 73 73 44 32 79 108 121 109 112 105 97 110 44 32 80 101 101 119 101 101 44 32 83 105 100 101 119 105 110 100 101 114 44 32 83 117 112 101 114 32 80 101 101 119 101 101 32 73 73 44 32 83 117 112 101 114 32 80 101 101 119 101 101 32 73 73 73 32 38 32 83 117 112 101 114 32 80 101 101 119 101 101 32 73 86 10 65 99 99 101 115 115 111 114 105 101 115 58 32 66 97 115 101 115 58 32 65 84 66 44 32 67 83 44 32 72 121 32 72 121 32 77 97 118 101 114 105 107 44 32 79 108 121 109 112 105 97 110 32 73 73 73 32 38 32 82 97 112 116 111 114 59 32 82 101 109 111 116 101 32 67 97 109 101 114 97 32 83 121 115 116 101 109 115 58 32 72 111 116 32 72 101 97 100 44 32 80 111 119 101 114 32 80 111 100 32 38 32 87 101 97 118 101 114 32 68 83 32 82 101 109 111 116 101 32
Hey hey all! Got this working. Here is what ended up as the solution:
<cfset newdescription = replaceNoCase(xtblAllCoPro
As you can see, a combination of trailblazzyr55 and SidFishes solutions. I ended up finding out that the character I was looking for was chr(10).
gdemaria, I am awarding your points for this in the other category and post that I made.
Thanks again all for your help!
Business Accounts
Answer for Membership
by: gdemariaPosted on 2007-05-23 at 06:16:58ID: 19141248
Depending on the system that generated the text, it could be just chr(13) - give it a test to see...