Solved

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

Posted on 2006-06-23
2
295 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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

685 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