Comments (10)
UnicodeEncodeError
请问您发送了什么内容?
我需要复现一下(
from openaibot.
我就是部署好发送了 /chat 你好 ,就寄了
用多台全新安装的 Debian 均出现此问题,已经确认没有缺失 setup.sh 中的软件包,且安装过程中无报错
from openaibot.
怪哦,我空白环境测试一下
from openaibot.
import sys
import locale
print(sys.getfilesystemencoding())
print(locale.getpreferredencoding())
先看看系统的编码
locale
from openaibot.
file Config/app.toml
再看看配置文件的编码
from openaibot.
iso8859-1
ISO-8859-1
以上是执行
import sys
import locale
print(sys.getfilesystemencoding())
print(locale.getpreferredencoding())
得到的输出内容
from openaibot.
怎么是 iso
from openaibot.
我也很好奇(
from openaibot.
改成 UTF8
Debian 好像是
dpkg-reconfigure locales
https://www.debian.org/doc/manuals/debian-reference/ch08.zh-cn.html#_rationale_for_utf_8_locale
from openaibot.
使用此方法后成功部署
from openaibot.
Related Issues (20)
- Pydantic BUG
- 插件访问 systemprompt 管理器 / instructions
- TelegramReply Fix
- FFmpeg Converter
- Handle `VOICE_MESSAGES_FORBIDDEN` for telegram
- Docs Update
- Async Chain Release / 异步逻辑指名释放 HOT 1
- 🍖search\_in\_google Run Failed:No module named 'duckduckgo\_search'
- Zeabur Template
- 平台指定支持
- [BUG] Make api_key a SecretStr
- Change To Azure
- [BUG] docker compose 安装运行, ValueError: Exception is not allowed in handle_exceptions HOT 1
- [BUG] Too many trash code
- Plugin Hook
- Image Input
- Roadmap
- tool_ghost
- Fix
- Fix
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openaibot.