473,414 Members | 1,709 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

How can i change encoding in a webservice?

JAA
I have made a webservice which spits out some XML data. This
data gets the processing-instruction:

<?xml version="1.0" encoding="uft-8"?>

Is it possible to change the encoding of this processing-
instruction to e.g. "ISO-8859-1"? I've tried the following,
without any results:

Context.Response.ContentEncoding =
System.Text.Encoding.GetEncoding("ISO-8859-1");

I have also tried to change the following lines in Web.config:

<globalization requestEncoding="ISO-8859-1" responseEncoding="ISO-8859-1" />

But, this also make the same result.

Thanks for any help in advance. :)
Nov 23 '05 #1
0 2264

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Marcin | last post by:
Hi, Does the .NET webservice infrastructure automatically supports xml encoding? I'd like to send an xml document via my webservice. Do I have to to encode it before sending? Marcin
5
by: joeblast | last post by:
I have a Web service that gets the financial periods and hold a reference to a disconnected dataset built at initialization. Web methods work on the dataset inside the web service. Everything is...
4
by: andreas.w.h.k. :-\) | last post by:
How do I change the address location in the wsdl <wsdl:port name="SearchSoap12" binding="tns:SearchSoap12"> <soap12:address location="http://searchservices/engine/search.asmx" /> </wsdl:port> ...
0
by: Simon Niederberger | last post by:
Hi all I'm having some trouble with UTF8 / ISO-8859-1 encoding using a Webservice based on PEAR::SOAP_Server. The client essentially sends an XML file as data (i.e. XML-data wrapped in SOAP-XML...
8
by: Maxi | last post by:
Hello, i'm sorry my bad english :( I have CR9 Webservice, how to change databadse name and User_name into Webservice method? (not Viewer Control) Tks!! -- --------------------------
1
by: Frédéric LAMBOUR | last post by:
How do i change utf-8 charset to iso-8859-1 on webservice response? Help me please.
0
by: sindhuja | last post by:
How to change the default encoding of asp .net webservice to ISO-8859-1? I have tried the following but have ' nt got my work done > I modified the globalization attribute in web.config > I...
2
jlrodrigues
by: jlrodrigues | last post by:
Hello. I'm not sure if this is the right forum (also posted in ASP forum), but my problem is the following: I have a Webservice e need to access by HTTP POST. I have this method that returns a...
23
by: Allan Ebdrup | last post by:
I hava an ajax web application where i hvae problems with UTF-8 encoding oc chineese chars. My Ajax webapplication runs in a HTML page that is UTF-8 Encoded. I copy and paste some chineese chars...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.