Page 1 of 1
Encoding problem in XML: getReportDetail
Posted: Sat Feb 18, 2012 3:04 pm
by MadJosch
There seems to be a problem with data encoding when I use the XML function
getReportDetail
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.
Re: Encoding problem in XML: getReportDetail
Posted: Mon Feb 27, 2012 4:25 pm
by Konny
Ok, I will check that. The one report you've given should be enough to debug this problem.
Re: Encoding problem in XML: getReportDetail
Posted: Thu Apr 05, 2012 10:43 am
by MadJosch
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
Re: Encoding problem in XML: getReportDetail
Posted: Thu Apr 05, 2012 5:21 pm
by Konny
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?
Re: Encoding problem in XML: getReportDetail
Posted: Fri Apr 06, 2012 6:32 am
by MadJosch
The bad news: The pilot's names are now messed up in the reports
e.g.:
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)
Re: Encoding problem in XML: getReportDetail
Posted: Fri Apr 06, 2012 3:25 pm
by Konny
Ok, that should be fixed now.
Re: Encoding problem in XML: getReportDetail
Posted: Fri Apr 06, 2012 3:59 pm
by MadJosch
Yes works smoothily now. Thanks a lot!