GithubHelp home page GithubHelp logo

Comments (10)

sudoskys avatar sudoskys commented on May 13, 2024

UnicodeEncodeError
请问您发送了什么内容?
我需要复现一下(

from openaibot.

sider2vf avatar sider2vf commented on May 13, 2024

我就是部署好发送了 /chat 你好 ,就寄了

用多台全新安装的 Debian 均出现此问题,已经确认没有缺失 setup.sh 中的软件包,且安装过程中无报错

from openaibot.

sudoskys avatar sudoskys commented on May 13, 2024

怪哦,我空白环境测试一下

from openaibot.

sudoskys avatar sudoskys commented on May 13, 2024
import sys
import locale

print(sys.getfilesystemencoding())
print(locale.getpreferredencoding())

先看看系统的编码

locale

from openaibot.

sudoskys avatar sudoskys commented on May 13, 2024
file Config/app.toml

再看看配置文件的编码

from openaibot.

sider2vf avatar sider2vf commented on May 13, 2024
iso8859-1
ISO-8859-1

以上是执行

import sys
import locale

print(sys.getfilesystemencoding())
print(locale.getpreferredencoding())

得到的输出内容

from openaibot.

sudoskys avatar sudoskys commented on May 13, 2024

怎么是 iso

from openaibot.

sider2vf avatar sider2vf commented on May 13, 2024

我也很好奇(

from openaibot.

sudoskys avatar sudoskys commented on May 13, 2024

改成 UTF8

Debian 好像是

dpkg-reconfigure locales

Refer
https://discuss.erpnext.com/t/server-error-unicodeencodeerror-latin-1-codec-cant-encode-characters-in-position-54-59-ordinal-not-in-range-256/82370/5

https://www.debian.org/doc/manuals/debian-reference/ch08.zh-cn.html#_rationale_for_utf_8_locale

from openaibot.

sider2vf avatar sider2vf commented on May 13, 2024

使用此方法后成功部署

from openaibot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.