Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

字符集问题 #14

Open
tanghululalala opened this issue Apr 26, 2024 · 1 comment
Open

字符集问题 #14

tanghululalala opened this issue Apr 26, 2024 · 1 comment

Comments

@tanghululalala
Copy link

几种算法中都存在未指定字符集编码 导致不同环境下会出现乱码的情况。都出现在lookup方法中,将bytes转成String的地方,需要手动传入字符编码:
将String oriString = new String(bytes)改为String oriString = new String(bytes, StandardCharsets.UTF_8)即可

@ljy1058318852
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants