Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

byte数组转String时未指定编码 #59

Open
QiAnXinCodeSafe opened this issue Aug 28, 2019 · 0 comments
Open

byte数组转String时未指定编码 #59

QiAnXinCodeSafe opened this issue Aug 28, 2019 · 0 comments
Assignees

Comments

@QiAnXinCodeSafe
Copy link

Assert.assertEquals(EchoServerAttachmentHandler.class.getName(), new String(response));

将字节数组的数据转换为String时如果未指定编码,可能会导致数据丢失。

@jhunters jhunters self-assigned this Nov 22, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants