In this layer, expecting utf8 characters is quite trivial (checkout the diff). However, for now it is simpler to expect ascii characters only. TODO: This choice should be configurable.
This enable external applications to expect ascii characters only. utf8 characters are encoded by default to xml character reference (like html)
Logging initialization is now done with the object LogSetup. It enable fine grained initialization and provide few usefull methods. Traceback logging is improved based on LogSetup. Tracebacks are properly handled and specially when no logging facility has been initialized.
… bytes This make a difference when receiving utf-8 encoded string. utf-8 characters are counted as 1 character but are encoded with several bytes.