推荐学习书目
› 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
Bviews
V2EX  ›  Python

FLask框架中secure_filename获取中文文件名问题

  •  
  •   Bviews · Jan 29, 2013 · 10408 views
    This topic created in 4986 days ago, the information mentioned may be changed or developed.
    用secure_filename获取中文文件名时,结果就只剩后缀了,如何处理这个问题呢?
    1 replies  •  1970-01-01 08:00:00 +08:00
    zhy0216
        1
    zhy0216  
       Jan 30, 2013   ❤️ 1
    http://werkzeug.pocoo.org/docs/utils/#werkzeug.utils.secure_filename

    The filename returned is an ASCII only string for maximum portability.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2408 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 05:04 · PVG 13:04 · LAX 22:04 · JFK 01:04
    ♥ Do have faith in what you're doing.