Character conversion in .NET

Gunslinger08

Lifer
Nov 18, 2001
13,234
2
81
Okay, so I'm getting this string from a web service that returns XML. It includes this: ampersand pound 39
This is supposedly equivalent to an apostrophe, but I can't find any method similar to Server.UrlDecode or Server.HtmlDecode to decode an entire string with these specially encoded characters. Does anyone know how this is encoded and how to decode it?
 

itachi

Senior member
Aug 17, 2004
390
0
0
why are you encoding it if it's not a part of the url?

i'm guessing Server.UrlDecode perform uri decoding.. uri's are encoded in utf-8, characters that take up 2 bytes can't be encoded/decoded.
Server.HtmlDecode should only decode html escape characters (i.e., & = &).

have u tried changing the encoding of the xml message (utf-16 instead of utf-8)?