V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
ecloud
V2EX  ›  Python

Tornado 一个奇怪的问题

  •  
  •   ecloud ·
    yecloud · 315 天前 · 1190 次点击
    这是一个创建于 315 天前的主题,其中的信息可能已经有所发展或是发生改变。

    传送门 https://github.com/tornadoweb/tornado/issues/3282

    很无厘头啊,我这个项目很简单,10 几个 handler10 几个 DAO ,也没有对 header 进行任何操作,怎么就一个行一个不行呢?

    Tornado 区我看没几个人就发这里了

    第 1 条附言  ·  315 天前
    搞定了,有个犄角旮旯的地方给 header 加了个 name ,还是编程习惯不好,要加 header 都放在一个地方加别散落在天南海北
    4 条回复    2023-06-17 22:24:17 +08:00
    Xusually
        1
    Xusually  
       315 天前 via iPhone
    不懂 tornado 不过你这报错不是挺明显了么 latin-1 header 不支持中文编码啊 你内容里不是有中文么?
    你为什么必须并且只使用 latin-1 ?
    ecloud
        2
    ecloud  
    OP
       315 天前
    @Xusually 我的 header 里没有中文啊,Tornado 要求必须用 latin-1 做 header 编码,不是我要用的
    raycool
        3
    raycool  
       315 天前
    tornado 还有这个限制?
    ecloud
        4
    ecloud  
    OP
       315 天前
    @raycool 对了,说是遵循什么 RFC 啥的,以前老版本兼容 py2 的时候还自动检测,现在的版本只支持 py3 就写死了必须用 latin-1
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1324 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 17:36 · PVG 01:36 · LAX 10:36 · JFK 13:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.