This seems to be a problem with RSS in general rather than Ditto specifically.
When I had Ditto create an RSS feed for a whole site, the page with an ’&’ in the title ("Swim & Sauna") caused my favoured RSS-reader (the Sage plug-in for Firefox) not to parse the feed at all because of the illegal character.
I don’t actually see the point of RSS-ing a whole site; I have a "Site Updates" folder with news in that is where I now get my RSS feed from. Thus an easy workaround is for me to just avoid putting an & in the titles of pages in this section, but at some point I will need to be able to let other people add news without this restriction.
Combined with what Tore says, it therefore looks at first glance that Ditto isn’t HTML-encoding the title field.
However, it seems no-one is quite sure how the title feed
should be encoded (it is not in the spec).
See
http://thresholdstate.com/threshold/4163/rss-feeds-valid-useful-or-accurate
Therefore it is seems that the feeds will appear differently in different RSS readers, and indeed in some might not work at all. It may be useful to know which RSS readers Ditto’s RSS output was/is tested with.
Tore, what readers are you using?
If there really isn’t any agreed method of having special characters in RSS titles, I can see myself adding a hack to change "&" to "and" so that it works on all readers.
Replacing foreign characters sounds more complicated - it might even be the case that multiple versions of the feed need to be made available, one HTML encoded, one not. (Make whichever one works for most people the default and add somewhere "Problems with accent characters in your RSS reader? Try our alternate feed".) For that to work, it would be useful to have the ability to toggle whether Ditto encodes the title.
I will probably do further research to see what the best practice is, and if anything can be shared I’ll let you all know. It could be that we’re better off raising the issue with the authors of RSS readers rather than the authors of Ditto!