How to clean crazy characters from a string value..?? I don't know what character it is!
Posted on 2006-11-07
I've got a script that's used to post auctions to eBay. The product description is often copied/pasted from 3rd party web sites and many times includes some kind of crazy character that ends up being a square in code view. The most recent example I came across was a simple text paragraph when in design view of Dreamweaver looked perfectly normal. However, if I go into code view I see 2 squares where 2 spaces would normally be. The squares aren't there for every space in code view, just a couple of areas.
The squares (whatever character they are) cause XML parsing errors when the script tries to post the item to eBay. We remove the squares and then it works fine. I'd like to figure out a way to automate the removal of these things using Replace but since I don't know what character they are I can't figure out what to do.
Any information would be greatly appreciated. Thanks!