Encoding problem in XML: getReportDetail

Information about the VA integration pack
Post Reply
MadJosch
Flight Attendant
Posts: 107
Joined: Fri Nov 21, 2008 1:14 pm
Location: germany
Contact:

Encoding problem in XML: getReportDetail

Post by MadJosch » Sat Feb 18, 2012 3:04 pm

There seems to be a problem with data encoding when I use the XML function getReportDetail
http://www.fsairlines.net/va_interface. ... _id=995063
Warning: DOMDocument::load() [domdocument.load]: Input is not proper UTF-8, indicate encoding ! Bytes: 0xE4 0x73 0x73 0x74
This applies only for a couple of flight reports. The major part of reports is transferred correctly. Maybe these reports contain something that causes above error message.

I found no solution on my side to "force" a proper encoding.
If needed, I can provide the concerning report id's.

Konny
FSAirlines Developer
Posts: 1564
Joined: Sun Sep 25, 2005 10:40 am
Location: Munich, Germany
Contact:

Re: Encoding problem in XML: getReportDetail

Post by Konny » Mon Feb 27, 2012 4:25 pm

Ok, I will check that. The one report you've given should be enough to debug this problem.
Konrad - FSAirlines Developer
Image

MadJosch
Flight Attendant
Posts: 107
Joined: Fri Nov 21, 2008 1:14 pm
Location: germany
Contact:

Re: Encoding problem in XML: getReportDetail

Post by MadJosch » Thu Apr 05, 2012 10:43 am

A little info:

as far as I can investigate, my assumption is that in the comment field of the concerning reports some characters are used which are obviously not correctly formatted (not UTF8 maybe).

I hope this helps

Greetings
Jörg

Konny
FSAirlines Developer
Posts: 1564
Joined: Sun Sep 25, 2005 10:40 am
Location: Munich, Germany
Contact:

Re: Encoding problem in XML: getReportDetail

Post by Konny » Thu Apr 05, 2012 5:21 pm

Thanks for the info, haven't yet had to time to look at this issue but with your information I just made a quick fix. Does it work now?
Konrad - FSAirlines Developer
Image

MadJosch
Flight Attendant
Posts: 107
Joined: Fri Nov 21, 2008 1:14 pm
Location: germany
Contact:

Re: Encoding problem in XML: getReportDetail

Post by MadJosch » Fri Apr 06, 2012 6:32 am

The bad news: The pilot's names are now messed up in the reports
e.g.:

Code: Select all

Jörg Klein
Kenan Özün
Maybe they are utf8_encoded twice? I could workaround by utf8_decoding them.

The good news: yes those reports can now be retrieved without error, except one (id=619171)
This one report brings a lot error messages :

Code: Select all

Warning: DOMDocument::load() [domdocument.load]: invalid character in attribute value in http://www.fsairlines.net/va_interface.php5?function=getReportDetail&va_id=5892&report_id=619171

Warning: DOMDocument::load() [domdocument.load]: attributes construct error in http://www.fsairlines.net/va_interface.php5?function=getReportDetail&va_id=5892&report_id=619171

Warning: DOMDocument::load() [domdocument.load]: Couldn't find end of Start Tag data line 3 in http://www.fsairlines.net/va_interface.php5?function=getReportDetail&va_id=5892&report_id=619171

Warning: DOMDocument::load() [domdocument.load]: PCDATA invalid Char value 26 in http://www.fsairlines.net/va_interface.php5?function=getReportDetail&va_id=5892&report_id=619171
...
and some more of that kind (PCDATA)

Konny
FSAirlines Developer
Posts: 1564
Joined: Sun Sep 25, 2005 10:40 am
Location: Munich, Germany
Contact:

Re: Encoding problem in XML: getReportDetail

Post by Konny » Fri Apr 06, 2012 3:25 pm

Ok, that should be fixed now.
Konrad - FSAirlines Developer
Image

MadJosch
Flight Attendant
Posts: 107
Joined: Fri Nov 21, 2008 1:14 pm
Location: germany
Contact:

Re: Encoding problem in XML: getReportDetail

Post by MadJosch » Fri Apr 06, 2012 3:59 pm

Yes works smoothily now. Thanks a lot!

Post Reply