Re: R: R: [phpxmlrpc-devel] proper data encoding in string value
Brought to you by:
ggiunta
From: maHo <lu...@ma...> - 2003-06-09 13:12:16
|
[ciach] >=20 > The way I understand it, iso8859-1, utf-8 and us-ascii are supported > by PHP xml parser. Allowing to pick between iso and utf then does > make sense (intentionally forgetting ascii). Plus if future versions > of PHP allow even more encodings the lib will have the framework > ready for them. you're probably right. my patch works well for me, but if someone add functionality you mentioned, i'll be glad. :) [ciach] >=20 >=20 > Sorry for my ignorance, but AFAIK XML 1.0 states that : >=20 > - char data comprises "any Unicode character, excluding the surrogate > blocks, FFFE, and FFFF." - "The right angle bracket (>) may be > represented using the string ">", and must, for compatibility, be > escaped using ">" or a character reference when it appears in the > string "]]>" in content, when that string is not marking the end of a > CDATA section." >=20 > so I would not explicitly say that xmlrpc string element is > binary-safe. (Or am I wrong?) hmm, i read that at http://www.xmlrpc.org/spec/ : # What characters are allowed in strings? Non-printable characters? Nul= l characters? Can a "string" be used to hold an arbitrary chunk of binary data? Any characters are allowed in a string except < and &, which are encode= d as < and &. A string can be used to encode binary data. so maybe we a reading different specs for one protocol :] [ciach] >=20 >=20 > I never actually tried the builtin functions, since the phpxmlrpc > lib always worked fine for me, and I have a little bit of code > deployed already. Of course builtin functions: -should be faster and > -get much wider exposure. It is a possibility that phpxlrpc will > slowly be abandoned. In fact I feel there has not been much activity > since release 1.0.99, even though there are some patches / bugs > reported. yeah..., sad.. pozdrav maHo --=20 lukasz shift-2 mach.com.pl,http://www.lukasz.mach.com.pl=09 gg://1612670 jabber://ma...@ja... jabber://ma...@ja... icq://136281200 motto://"nie dziel skarbu p=F3ki smok zipie" |