We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在接收事件时出现事件内容中文乱码 在 HttpTranslator 类的 translate 方法中: String bodyStr = (String)request.getReader().lines().collect(Collectors.joining(System.lineSeparator())); 如果环境的默认字符集不是UTF-8,则会出现中文乱码,推荐强制使用UTF-8进行读取,如: BufferedReader reader = new BufferedReader(new InputStreamReader(request.getInputStream(), StandardCharsets.UTF_8)); String content = reader.lines().collect(Collectors.joining(System.lineSeparator()));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在接收事件时出现事件内容中文乱码
在 HttpTranslator 类的 translate 方法中:
String bodyStr = (String)request.getReader().lines().collect(Collectors.joining(System.lineSeparator()));
如果环境的默认字符集不是UTF-8,则会出现中文乱码,推荐强制使用UTF-8进行读取,如:
BufferedReader reader = new BufferedReader(new InputStreamReader(request.getInputStream(), StandardCharsets.UTF_8));
String content = reader.lines().collect(Collectors.joining(System.lineSeparator()));
The text was updated successfully, but these errors were encountered: