/t5/coldfusion-discussions/problems-with-replace/td-p/899664Jun 12, 2008
Jun 12, 2008
Copy link to clipboard
Copied
I am using a cfc to create an XML page that Ajax can use to
display our products. Some of the product names contain special
characters such as ®, which XML can't display. How do I strip
those characters out so that the products will display?
I have tried this: <cfset products_name =
Replace(products_name, "®", " ", "ALL")>. But this is not
working as expected. Any suggestions?
Ok, I figured it out. It wasn't the Replace expression, but
it was the variable name that I used, which was the same name as
the query column name.. Thanks for helping!
/t5/coldfusion-discussions/problems-with-replace/m-p/899666#M82669Jun 12, 2008
Jun 12, 2008
Copy link to clipboard
Copied
EnergyFed wrote:
> I am using a cfc to create an XML page that Ajax can use
to display our
> products. Some of the product names contain special
characters such as ?,
> which XML can't display. How do I strip those characters
out so that the
> products will display?
>
> I have tried this: <cfset products_name =
Replace(products_name, "?", " ",
> "ALL")>. But this is not working as expected. Any
suggestions?
>
/t5/coldfusion-discussions/problems-with-replace/m-p/899668#M82671Jun 12, 2008
Jun 12, 2008
Copy link to clipboard
Copied
LATEST
Ok, I figured it out. It wasn't the Replace expression, but
it was the variable name that I used, which was the same name as
the query column name.. Thanks for helping!