WhatPulse Forums
webAPI - Printable Version

+- WhatPulse Forums (http://whatpulse.org/forums)
+-- Forum: Support (/forumdisplay.php?fid=38)
+--- Forum: Website (/forumdisplay.php?fid=60)
+--- Thread: webAPI (/showthread.php?tid=92)



webAPI - mastadizzy - 08-08-2007 07:53 AM

Hi,

We got several problems with our webAPI team_parse.php

1. When you fill in teamnumber 1295 (dutch power cows) the parser stops after mr_fré ... he has an eacute (é) in his name but in the XML file it will give an special character Confused , The parser wouldn't parse after him so its verry strange (we use the normal webAPI from here)

2. When we put the errors on (E^all) we'll get many Notice index and notice offset errors Confused

What's the solution?
Thnx,
mastadizzy


webAPI - X-Kal - 08-09-2007 03:57 PM

To my knowledge, the servers have trouble with any kind of "unusual" characters, like the é. I know that a temporary fix would be to change the name to something like mr_fre or mr_fre`, though I don't see those as ideal solutions. I get too many places that won't let me use my hyphen already Sad


webAPI - BenPhelps - 09-27-2007 12:19 AM

I also have problems with < > ' " `

and most special characters.


webAPI - Erkens - 10-19-2007 07:11 AM

In that same dutch team (team GoT, 1295) there are some guys that use an & in their name, this has to be converted to &amp; because all XML parser won't be able to parse the XML: it's not well formed!


webAPI - frickY - 10-25-2007 07:52 AM

Special characters should be encapsulated within CDATA-containers.
Escaping characters with an HTML entity inside XML has no sense.


webAPI - Erkens - 10-25-2007 07:58 AM

frickY Wrote:Special characters should be encapsulated within CDATA-containers.
Escaping characters with an HTML entity inside XML has no sense.

The use of &amp; &gt; and &lt; are valid within XML (all other "HTML entities" are not) so when you only have one of these characters it is better to use these entities than encapsulating them in a CDATA. Ofcourse when you use CDATA the problem of the high characters could also fixed, but even there it is better to use the right charset.