Note that there are some explanatory texts on larger screens.

plurals
  1. POJava, Unknown charachters ン □ Xml response
    primarykey
    data
    text
    <p>i am currently trying to extract from an Xml file (that is accessible via this address : <a href="http://mobilite.euroairport.com/services/getDepartureAirports?language=French" rel="nofollow">http://mobilite.euroairport.com/services/getDepartureAirports?language=French</a>) 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</p> <p>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") :</p> <pre><code> 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"); </code></pre> <p>And this is the result (in Logcat for android) :</p> <pre><code> 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 </code></pre> <p>My question is : do i make a mistake while trying to read this string, or is it a problem due to the server ?</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload