Incorrect utf8 decoding webserviceresult

0
When consuming a webservice we noticed that utf8 decoding does not always work as expected. In a new project we consume a webservice from which the result seems OK. The UTF 8 message header is in place and all special characters are coded correctly in the results. When mapping the result the encoded special characters are not decoded at all. Example (below): The "Straat" element should be decoded to Klompéstraat, the value mendix maps to the attribute is exactly the same as shown in the result (Klompéstraat). Does anyone know what is going wrong here? <item> <verkooppunt>80</verkooppunt> <categorie>B</categorie> <prijs>20.00</prijs> <verkooptijd>2014-02-12 09:35:00</verkooptijd> <geboortedatum>19400812</geboortedatum> <voorletters>T.C.</voorletters> <tussenvoegsels/> <achternaam>Smit</achternaam> <geslacht>M</geslacht> <straat>Klompéstraat</straat> <huisnummer>110</huisnummer> <plaats>Rotterdam</plaats> </item>
asked
2 answers
1

Did you try SOAPUI to test the webservice to check the result given? If the result in SOAPUI is correct then this is a mendix bug and you should file a bug report. Otherwise it is not going wrong on your side but is the supplying webservice at fault. Character coding can be tricky.

Regards,

Ronald [EDIT] Nice reading about character coding.

answered
0

The result shown in the inititial question is result pasted from SOAPUI

answered