> It's clear to me that detecting an encoding is actually the simplest > part of all this (so long as there's an API to do it!) Putting it > inside a codec seems like the wrong subdivision of responsibility. In case it isn't clear - this is exactly my view also. Regards, Martin