V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · Jun 17, 2023 · 1738 views
    This topic created in 1048 days ago, the information mentioned may be changed or developed.

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

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

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

    Supplement 1  ·  Jun 17, 2023
    搞定了,有个犄角旮旯的地方给 header 加了个 name ,还是编程习惯不好,要加 header 都放在一个地方加别散落在天南海北
    4 replies    2023-06-17 22:24:17 +08:00
    Xusually
        1
    Xusually  
       Jun 17, 2023 via iPhone
    不懂 tornado 不过你这报错不是挺明显了么 latin-1 header 不支持中文编码啊 你内容里不是有中文么?
    你为什么必须并且只使用 latin-1 ?
    ecloud
        2
    ecloud  
    OP
       Jun 17, 2023
    @Xusually 我的 header 里没有中文啊,Tornado 要求必须用 latin-1 做 header 编码,不是我要用的
    raycool
        3
    raycool  
       Jun 17, 2023
    tornado 还有这个限制?
    ecloud
        4
    ecloud  
    OP
       Jun 17, 2023
    @raycool 对了,说是遵循什么 RFC 啥的,以前老版本兼容 py2 的时候还自动检测,现在的版本只支持 py3 就写死了必须用 latin-1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2463 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 05:59 · PVG 13:59 · LAX 22:59 · JFK 01:59
    ♥ Do have faith in what you're doing.