Solved

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

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 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

16 Experts available now in Live!

Get 1:1 Help Now