The query result is messed up in Chinese
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
调研方向
首先,在 Windows 10 上针对 PostgreSQL 11.3 使用 pgcli 3.5.0 重现这两个查询,并比较 issue 中显示的有限结果和无限结果。利用提供的屏幕截图和环境详细信息,跟踪查询输出编码的处理方式;当完整结果和有限结果中的中文字符都能正确显示时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
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 freezecommand.
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
- 主要语言
- Python
- 星标
- 13.4k
- 派生
- 613
- 平均合并
- 12 小时 45 分钟
- 30 天内合并 PR
- 5
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
dbcli/pgcli 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 64/100
-
难度 5/5 一周以上 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 72/100
-
难度 3/5 1-2 天 新手友好度 68/100
-
难度 3/5 1-2 天 新手友好度 55/100
相似的 Issue
-
area: harness bug status: needs-triage
难度 2/5 1-3 小时 新手友好度 75/100
Human-Agent-Society/reef#625 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 1/5 1 小时以内 新手友好度 80/100
learningequality/kolibri#15351 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
Name consistency 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
eellak/triplestore#65 · 1 条评论 ·