Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Mon, 9 Jun 2008 11:31:00 -0700,    group: microsoft.public.dotnet.framework.aspnet.webservices        back       


utf-16 with XML   
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
date: Mon, 9 Jun 2008 11:31:00 -0700   author:   Abdulfatah A. Reslan

RE: utf-16 with XML   
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 
> 
>  
>
date: Wed, 11 Jun 2008 07:43:01 -0700   author:   Abdulfatah A. Reslan

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us