Solved

How do you encode and send special characters via HTTP in XML?

Posted on 2006-06-23
2
269 Views
Last Modified: 2006-11-18

I have an XML file that I am sending to another server via HTTP.  I am using MFC's CHttpFile object and Xerces XML to do this.  I have some extended characters (from Spanish language) that I may need to put in the XML. When I do this and try to send it via HTTP, the XML parser on the other end has a problem parsing this XML because of the special characters.  I know I need to indicate to the XML to use utf-8, but I'm not sure how to do this.  Do I encode it in the HTTP header or in the XML?  If so, do I use the Xerces APIs or a function on the CHttpFile class?  Thanks.

0
Comment
Question by:mromeo
2 Comments
 
LVL 5

Accepted Solution

by:
vinodhsomasekharan earned 125 total points
ID: 16981752
Hai,

     Try this link
      http://forum.java.sun.com/thread.jspa?threadID=551326&messageID=2703404

Hope this helps,

Regards,
Vinodh
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
c# advanced xml like string split - Help needed 15 73
installing and using WTP plugin eclipse MARS 3 97
RSS Feed Parsing for Images 5 59
XML to Excel using XSL - formatting 3 26
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now