Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 glassfish 3.1.2 服务器有一个用于身份验证的 jdbc 领域。我使用 sha-256 作为摘要算法,使用 base64 作为密码编码。我尝试使用一个简单的 Swing 客户端登录。
它适用于普通字符,但如果密码包含德语变音符号(例如ä,ö,ü,...),则不会。
由于 java 使用 UTF-16 进行内部字符串编码,我将 jdbc 领域中摘要算法的字符集也设置为 UTF-16,但它仍然不起作用。有人知道为什么吗?
这是Glassfish 3中的一个已知错误...