1 changed files with 35 additions and 0 deletions
@ -0,0 +1,35 @@ |
|||||
|
?????`git diff`??????????????? |
||||
|
|
||||
|
### OpenAiCodeReviewService.java |
||||
|
|
||||
|
**????** |
||||
|
|
||||
|
- ?????`java.nio.charset.StandardCharsets`? |
||||
|
- ???`ChatCompletionSyncResponseDTO.Message`????????????????????UTF-8??? |
||||
|
|
||||
|
**???** |
||||
|
|
||||
|
1. **????**???`StandardCharsets`??????????????????????????????????? |
||||
|
|
||||
|
2. **????**?????????????`message.getContent()`???????????????????????????????????????`StandardCharsets.ISO_8859_1`??????????????ISO-8859-1?????????????????????????? |
||||
|
|
||||
|
**??**? |
||||
|
- ??`message.getContent()`???????????UTF-8???????? |
||||
|
- ????????????????????? |
||||
|
|
||||
|
### ChatGLM.java |
||||
|
|
||||
|
**????** |
||||
|
|
||||
|
- ??????????`Accept-Charset`?????`UTF-8`? |
||||
|
- ??UTF-8???????? |
||||
|
|
||||
|
**???** |
||||
|
|
||||
|
1. **?????**???`Accept-Charset`???????????????????????????????????? |
||||
|
|
||||
|
2. **???????**???UTF-8??????????????????????????? |
||||
|
|
||||
|
**???** |
||||
|
|
||||
|
????????????????????????????????????????????????????????????????????????????????????? |
Loading…
Reference in new issue