Skip to content

.translate.post_translate_text()翻译结果出现内容丢失和格式混乱 #1

Description

@liuyun847

使用
client = UapiClient("https://uapis.cn")
txt=str.doc
result = client.translate.post_translate_text(to_lang="zh-CHS", text=txt)
翻译str.__doc__时发现输出缺失和格式异常.

后续测试发现当使用包含 <> 等尖括号字符的文本作为翻译输入时,API 返回的结果中出现错误的 HTML 实体编码,使用中文分号替代英文分号.

bug.py

详情见附件bug.py

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions