Sorry about the HTML email. Yes it appears that all php url handling
functions run htmlspecialchars_decode() on open (and it makes no sense
while it still decodes &prop without the ;). I can't seem to get around
it and there is no reference to it within any doc or the php.ini file.
@Ran Ari-Gur
Unfortunately replacing the & with & does not solve the problem.
I will try snoopy and see what happens, but this minor issue is killing
me.
-jason
-----Original Message-----
From: Roan Kattouw [mailto:roan.kattouw@home.nl]
Sent: Tuesday, November 13, 2007 10:40 AM
To: MediaWiki API announcements & discussion
Cc: Jason Kuter
Subject: Re: [Mediawiki-api] FW: Problems Using API Via PHP
Jason Kuter schreef:
I understand that this part of the API is not implemented fully etc,
etc. However I am having an issue I can't get around which is the
following:
&prop is converted by php to the "proportional" char when sending via
post, get, using curl, fopen, file_get_contents.
That's weird. Isn't the proportional character supposed to be
"∝",
with a semicolon? If CURL chokes on this, that's CURL's fault, not ours.
Alternatively, you could use Snoopy [1], which doesn't have this
problem.
Roan Kattouw (Catrope)
P.S.: Never, EVER, send HTML e-mail to a mailing list, unless you want
lots of people to hate you. Your e-mail application is bound to have an
option to send plain-text e-mail rather than HTML.
[1]
http://snoopy.sourceforge.net/