Item12444: HTML::Entities::_decode_entities assumes that the target string is unicode, and will expand all entities. However some entities are not representable by a single character in the default charset, so we have to reduce the set of converted entities to just those that can be converted. Also, the resulting string has the entities converted as unicode characters, which have to be converted to the site charset before further steps. Note that the translator is forced to work in the site charset because it has to use Foswiki::Func, which assumes it. If it could work in unicode, this would all be a lot simpler!

git-svn-id: http://svn.foswiki.org/branches/Release01x01@16736 0b4bb1d4-4e5a-0410-9cc4-b2b747904278