Solved

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

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 …
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

860 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