outgoingwebresponsecontext does arrangement non-english characters


we have implmented rest-style use controlling wcf .net 3.5. use retrieves investigate documents. twine 'synopsis' indicated formula bolow contains non-english characteres browser deliveres "????????".



private vacant returnsynopsisinfo(iapiweboperationcontext context, outgoingwebresponsecontext outgoingresp, twine synopsis)
{
setresponseheaders(outgoingresp, httpstatuscode.ok);
outgoingresp.contenttype = "text/html; charset=utf-8";
context.result = new memorystream(encoding.ascii.getbytes(synopsis));
}



any advise many appreciated.



thank you.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?