Python Desktop Server Weblog 30.6.2003

a picture of myself

Münsterland.org

2003-06-30

XML-RPC and the ASCII limitation ::: www.effbot.org

Actually there is a problem with the charset stuff in the XML-RPC spec. Or not in the spec, but in the implementations of the company whose former CEO created the spec (was that diplomatic enough? Winky). The problem is in the fact that almost all Userland software abuses the spec in the way that they don't give correct charset encodings in XML-RPC stuff.

They send ISO-8859-1 chars without declaring the XML stuff as ISO-8859-1 - this doesn't validate (XML charset by default is UTF-8 and many 8bit chars are not valid prefix codes in UTF-8), so you have to patch headers and parsers to communicate with Userland software (RCS or Radio), as the results from RCS or the requests and results from Radio (I am on the receiving side of Radio if I work on the Python Community Server) won't be allowed by validating XML parsers.

I don't speak of the chars that are not in ISO-8859-1 that are sent out by Radio from time to time (for example the smart quotes in error messages when you access non-existant methods on a Mac Radio installation), as that would be annoying but unproblematic if the stuff was declared as ISO-8859-1 - the parser would take it, it would just look funny.

Why do I care about this? Usually I don't do comment stuff on this blog. So why on this one? Simple reason: it makes the life of programmers unnecessary hard. Usual toolkits to do XML parsing need correct and valid XML to work, otherwise they barf (many toolkits are built around the excellent and fast expat parser).

So it would be nice if Userland would live up to the specs their former CEO built and would lead a way of technical excellence in the implementation of those specs.

posted at 10:58:40    #
June 2003
MoTuWeThFrSaSu
       1
2 3 4 5 6 7 8
9101112131415
16171819202122
23242526272829
30      
May
2003
 Jul
2003

This is the Python Desktop Server weblog.


(Donations will be used by the author to buy stuff, fullfill selfish wishes or do other silly recreational things. You have been warned.).
The PyDS is
OSI Certified Open Source Software

Python Powered

XML-Image

© 2003-2007, Georg Bauer