don't worry, Roger
I have a bit of trouble finding a clear documentation about this subject.
Thats probably why the existing encoding/decoding issues (in the current code base) ended up there from the beginning.
However after some reading, the best solution seems to be this:
(Thanks for the research)
1) protocol-level encode/decode with default charset ISO-8859-1 or US-ASCII
2) other charset like utf-8, encoded/decoded by the application developer
regarding CharsetDecoder, the javadoc says:
"Instances of this class are not safe for use by multiple concurrent threads."
so it seems safer to link a new instance of CharsetDecoder every single IOLoop, right ?!?!?
Sounds reasonable. Take a look at the ThreadLocal MessageDigest in org.deftserver.util.HttpUtil
can you tell me where I find the new repository!?!?
Take a look at http://incubator.apache.org/projects/deft.html.
The svn repo is located at: https://svn.apache.org/repos/asf/incubator/deft/
if you agree I would for now, continue to update my old github fork, to generate the patches more quickly.
My best advice is to svn checkout from the Apache repo. (you could still use git locally, I do that..)