Dear Sir: i develp web service by using C# this web service have 2 web method wich return some information on XML format. the problem is the XML information returned by web method contain utf-16 encoding in first line , this first line: <?xml version="1.0" encoding="utf-16"?> but when web method invoked or run from other web site or application the utf-16 replaced with utf-8, please help me how i can retrive the utf-16 encoding from my web method
Dear Sir in order to change the utf form 8 to 16 i can open the XML file for the file ClassDiagram.cd the first line inside this file is <?xml version="1.0" encoding="utf-8"?> then i changed it to <?xml version="1.0" encoding="utf-16"?> but when i invoke the method locally i found the error: WebMethod not found and when i return back utf-8 inside this file the method run normally please help me what i have to do to solve this problem??? "Abdulfatah A. Reslan" wrote: > Dear Sir: > > i develp web service by using C# this web service have 2 web method wich > return some information on XML format. > the problem is the XML information returned by web method contain utf-16 > encoding in first line , this first line: > > <?xml version="1.0" encoding="utf-16"?> > > but when web method invoked or run from other web site or application the > utf-16 > replaced with utf-8, > > please help me how i can retrive the utf-16 encoding from my web method > > >