[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: Problem with httpapi and german characters



Hello Mario,

I am coming from Austria and I am used to have such characters in any responses. I change the XML file in the IFS to CCSID 1208 (CHGATR) before I open and import it into the XML Parser. This works well on my machine (of course my system is set to German language).

Mit freundlichen Grüßen/Best regards Mag. Alexander Grünwald

Geschäftsführer/Projektmanagement
SOB Datenverarbeitungsges.m.b.H.
Albrechtstraße 60/9
A-3400 Klosterneuburg

Tel. +43/2243/37201
Fax. +43/2243/37201/5
Mail: alexander.gruenwald@xxxxxxxxxxx

-----Ursprüngliche Nachricht-----
Von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] Im Auftrag von Mario Martoriello
Gesendet: Freitag, 07. Oktober 2016 12:26
An: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Betreff: Problem with httpapi and german characters

Hi all
I successfully develop a procedure to consume a web service with Httpapi and WSDL2RPG. Sometimes it happens that when in the answer is a character like ä, ü, ö, Ü, Ä, Ö the Expat procedure that reads the XML message goes in error for “(eXpat error): (4) not well-formed (invalid token)”. I contacted the web service provider and they told me that they used the exact utf-8 encoding. Then I modified my program to read  only the answer and write it in a ifs file without any changes . I suppose  that the data has been written in binary mode as they have been received . Then  I transfer the file from Ifs to my pc via Ftp in binary mode and then open it with Notepad++ and I found that the data was in ANSI and not in UTF-8 and the Ö was coded as x’D6’ instead of x’C3 96’ . Does Httpapi do any changes  to the received data or am I missing something?
Thank you for any Help
Best regards
Mario 
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------