freewind
V2EX  ›  问与答

scrapy 如何提交中文参数?

  •  
  •   freewind · Sep 12, 2016 · 1910 views
    This topic created in 3553 days ago, the information mentioned may be changed or developed.
    刚学 scrapy, 现有一中文参数,后台服务器编码为 gbk
    return [FormRequest(url="http://www.example.com/post/action",
    formdata={'condition': '05▓'},
    callback=self.parse)]

    条件中有一个符号▓,这个该怎么写?
    直接这样写得不到结果
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   898 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:06 · PVG 04:06 · LAX 13:06 · JFK 16:06
    ♥ Do have faith in what you're doing.