Skip to content

Commit

Permalink
Merge pull request #147 from Leizhenpeng/fix/md_encoding_error
Browse files Browse the repository at this point in the history
fix: unicode characters show problem
  • Loading branch information
Leizhenpeng authored Mar 28, 2023
2 parents 31aa8bb + 2cf6d2a commit 8cadbad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/binary-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
md5sum: false
project_path: "./code"
binary_name: "feishu-chatgpt"
extra_files: ./code/config.example.yaml readme.md
extra_files: ./code/config.example.yaml readme.md LICENSE ./code/role_list.yaml
2 changes: 1 addition & 1 deletion code/handlers/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func processUnicode(msg string) string {
r, _ := regexp.Compile(`\\u`)
s = r.ReplaceAllString(s, "")
i, _ := strconv.ParseInt(s, 16, 32)
return strconv.Itoa(int(i))
return string(rune(i))
})
}

Expand Down

0 comments on commit 8cadbad

Please sign in to comment.