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 8644033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:11:50+00:00 2026-06-12T12:11:50+00:00

I am currently trying to extract from an Xml file (that is accessible via

  • 0

I am currently trying to extract from an Xml file (that is accessible via this address: http://mobilite.euroairport.com/services/getDepartureAirports?language=French) a list of airports.
My problem is that the ‘Ü’ that should appear in “DÜSSELDORF” is impossible to read (even Ie or firefox directly).
I obtain something like this:
D□SSELDORF or D SSELDORF or D?SSELDORF

The following is the code that I used to try to find the encoding of this file (n is the string that contain “DÜSSELDORF”):

        byte[] bytes = n.getBytes();            
        Log.w("tagtag", (char) bytes[0] + " "+(char) bytes[1]+" "+(char) bytes[2]);
        bytes = n.getBytes("ASCII");            
        Log.w("tagtag", (char) bytes[0] + " "+(char) bytes[1]+" "+(char) bytes[2]);
        bytes = n.getBytes("Cp1252");           
        Log.w("tagtag", (char) bytes[0] + " "+(char) bytes[1]+" "+(char) bytes[2]);
        bytes = n.getBytes("UTF-8");            
        Log.w("tagtag", (char) bytes[0] + " "+(char) bytes[1]+" "+(char) bytes[2]);
        bytes = n.getBytes("ISO8859_1");            
        Log.w("tagtag", (char) bytes[0] + " "+(char) bytes[1]+" "+(char) bytes[2]);
        bytes = n.getBytes("ISO8859_2");

And this is the result (in Logcat for android) :

        10-08 09:41:30.557: W/tagtag(1506): D □ ン
        10-08 09:41:30.557: W/tagtag(1506): D ? S
        10-08 09:41:30.567: W/tagtag(1506): D ン S
        10-08 09:41:30.567: W/tagtag(1506): D □ ン
        10-08 09:41:30.577: W/tagtag(1506): D ン S
        10-08 09:41:30.637: W/tagtag(1506): D ン S

My question is: do I make a mistake while trying to read this string, or is it a problem due to the server?

  • 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-06-12T12:11:51+00:00Added an answer on June 12, 2026 at 12:11 pm

    Definitley server/ (data service) (misconfiguration issue) / bug.

    Server returns this line in HTML/XML response:

    Content-Type: application/xml;charset=UTF-8\r\n
    

    I just inspected byte dump of the xml, this is how wireshark represents “DSSELDORF”:

    D..SSELDORF
    

    in hex dump (see UTF-8 code table for hex value c2 9d):

    44 c2 9d 53 53
    

    which would be:

    44 - D
    53 - S
    

    and
    C2 9D

    gets interpreted as control character which is also known as non printable character – hence the “missing” U – which also explains your logcat output.

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

Sidebar

Related Questions

I'm trying to extract data from an xml file. A sample of my code
I'm trying to extract some information from an xml file using xslt. I've used
I'm trying to get attributes from an XML file using this code: $xmlFile =
I'm currently trying to extract data from a table, and am using this: $online
I'm currently trying to get the most popular productID from my MSSQL Database. This
I have an XML schema that I need to extract values from but I
I have a string that i am trying to extract patterns from, the string
I'm trying to extract some specific pictures from html content . Currently I have
I am trying to extract some data from an XML input with 6 lines,
i'm trying to extract from proper noun from a tagged file. But the problem

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.