Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 346235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:09:29+00:00 2026-05-12T11:09:29+00:00

I am integrating an app with a service (iContact), that describes its API as

  • 0

I am integrating an app with a service (iContact), that describes its API as “rest-like”. I post XML, and everything works fine… Until I send special characters like æøå – then I get a “bad request” error from the server.

<contacts>
  <contact>
    <firstname>Søren</firstname>
    <lastname>ÆbleTårn</lastname>
  </contact>
</contact>

I tried putting firstname and lastname values in cdata, but that did not help.

Is there some encoding I can apply to values (similar to html-encode), or do I need to move in another direction?

I doubt the problem is specific to .Net, but the answer might be, so here is the code I use:

Dim xml as string = GenerateXml()
Dim http As New HttpClient("http://uri.to/rest")
Dim resp As HttpResponseMessage = http.Post(String.Empty, HttpContent.Create(xml))
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T11:09:29+00:00Added an answer on May 12, 2026 at 11:09 am

    You can use numeric entities in XML to help with some encoding issues:

    <firstname>S&#xf8;ren</firstname>
    

    But you still have to be sure the server is coded correct to receive, process and store these characters. It’s hard to know where the error is here…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF Service that works just fine in the VS development server,
So we want to develop a service app (web Service with post/get API). What
Basically my app is interacting with a web service that sends back a weird
I am using Facebook JS SDK for integrating Like buttons in my Rails App.
i am developing an app which has a evernote integration,everything works perfect but my
I'm having some issues integrating the SqlDependency service with my Windows Forms App, and
I have a Spring app which launches a REST Service within an embedded instance
I'm integrating CIM into an MVC3 app. I've added a service reference using the
I'm using QBFC to generate invoices in a Quickbooks integrating app. I'm getting an
I'm currently integrating external applications in my app ex SalesForce.com. My question pertains to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.