The query result is messed up in Chinese
- 主要语言
- Python
- 星标
- 13.4k
- 派生
- 612
- 平均合并
- 6 天 14 小时
- 30 天内合并 PR
- 10
描述
## Description
select * from table_name limit 10;
OK!!!
select * from table_name;
garbled!!!


## Your environment
os: win10
Server: PostgreSQL 11.3
pgcli-Version: 3.5.0
- [ ] What is the output of ``pip freeze`` command.
bcrypt==4.0.1
cffi==1.15.1
cli-helpers==2.3.0
click==8.1.3
colorama==0.4.6
configobj==5.0.8
cryptography==36.0.2
importlib-resources==5.12.0
mycli==1.26.1
paramiko==3.2.0
pendulum==2.1.2
pgcli==3.5.0
pgspecial==2.1.0
prompt-toolkit==3.0.38
psycopg==3.1.9
psycopg-binary==3.1.9
psycopg2==2.9.6
pyaes==1.6.1
pycparser==2.21
Pygments==2.15.1
PyMySQL==1.1.0
PyNaCl==1.5.0
pyperclip==1.8.2
python-dateutil==2.8.2
pytzdata==2020.1
setproctitle==1.3.2
six==1.16.0
sqlglot==16.8.1
sqlparse==0.4.4
sshtunnel==0.4.0
tabulate==0.9.0
typing_extensions==4.7.1
tzdata==2023.3
wcwidth==0.2.6
zipp==3.15.0
贡献指南
调研方向
首先,在 Windows 10 上针对 PostgreSQL 11.3 使用 pgcli 3.5.0 重现这两个查询,并比较 issue 中显示的有限结果和无限结果。利用提供的屏幕截图和环境详细信息,跟踪查询输出编码的处理方式;当完整结果和有限结果中的中文字符都能正确显示时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- postgresql, python
- 领域
- cli, databases
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100