Just because it isn't a web application does not mean you can not add
a reference to System.Web to use the HttpUtility class.

I've done this in several windows forms applications that must
interact with websites and deal with Html encoding/decoding.

On Sep 3, 11:03 am, Mike <[email protected]> wrote:
> Hi All;
>
> I have an application that retrieves information from a web feed and
> inserts into a database for other processing.  the issue i am
> encountering is when i try to insert a string value that has special
> characters such as the trade mark symbol, copy right, registered,
> degree etc...
>
> i have tried using the string replace using the equivalent ascii code
> for the proper symbol but i am not having any luck.
>
> this is not a web application so i can not use the server.encode to
> get strip the values.
>
> this is what i tried without success:
>
> descripition = description.replace("&#153"," ");
>
> to try and remove the trademark symbol...
>
> thanks
> - Mike

Reply via email to