Q: Which types/elements allow non-ascii characters?
<string> and <name> (in <struct>) allow textual content and therefore may contain all characters allowed in XML. <methodName> also is a string, but is explicitly limited to characters: [a-zA-Z0-9_.:/]
Q: What about NULL and other XML-illegal characters?
A: Well, the XML-RPC spec explicitly states that NULLs are allowed, however the spec also says that XML-RPC is XML and NULLs are not allowed in XML. The same is the case with all characters in the range #00-#1F (except #x9, #xA and #xD).
Best practice: never emit these characters, and fail upon receiving them.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=749518
Originator: NO
Here is some background infos about XML-RPC:
Q: Which types/elements allow non-ascii characters?
<string> and <name> (in <struct>) allow textual content and therefore may contain all characters allowed in XML. <methodName> also is a string, but is explicitly limited to characters: [a-zA-Z0-9_.:/]
Q: What about NULL and other XML-illegal characters?
A: Well, the XML-RPC spec explicitly states that NULLs are allowed, however the spec also says that XML-RPC is XML and NULLs are not allowed in XML. The same is the case with all characters in the range #00-#1F (except #x9, #xA and #xD).
Best practice: never emit these characters, and fail upon receiving them.