As I said, the problem occurs for [i]both[/i] usernames and passwords containing non-ASCII characters. If either contains non-ASCII characters, authentication fails.
(I could understand that MD5-encoding could be tricky with passwords, but not usernames, since I don't MD5-encode those).
I haven't (yet) tried to refactor my application to not store password MD5-encoded.
[Message sent by forum member 'tmpsa']
http://forums.java.net/jive/thread.jspa?messageID=398485