simmy7 0 Newbie Poster

I am trying to replace a series of characters with an encoded string value and use that to look for a value in a table. My problem is that when I put the encoded value in the replace, cf converts it to the character instead of leaving it as those characters.

Example
Let say Passname = "%E2%84%A2Hello"
I have the code:
<cfset PassName=#Replace(PassName, "%E2%84%A2", "&##153;","all")#>
this will make the string passname contain: "™Hello". I want it to be "&#153;Hello"

Is there any way to do this?

Thanks
Simmy

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.