I'm developing a RESTfull web services using WCF. In this service I'm returning a XML in Stream format which contains '£'. I get this in symbol in XML but on client side I get the '?' instead of '£'.
public Stream HandleMessageStream()
{
StreamReader reader = new StreamReader(request);
string text = "<price>£ 10.00</price>";
UTF8Encoding encoding = new UTF8Encoding();
MemoryStream ms = new MemoryStream(encoding.GetBytes(text));
WebOperationContext.Current.OutgoingResponse.ContentType = "text/html";
return ms;
}
I tried with different encoding but didn't find the answer. Can anyone help me?