Giter Site home page Giter Site logo

Comments (4)

hugovk avatar hugovk commented on June 10, 2024

From [email protected] on March 28, 2009 13:26:31

this should be fixed by now as well.

Status: Fixed

from pylast.

hugovk avatar hugovk commented on June 10, 2024

From nichte on May 13, 2009 05:57:08

I still have this issue in 0.3.4

Also the same thing applies to _Request._download_response(self) where quote_plus is
also called without escaping the parameters first.

from pylast.

hugovk avatar hugovk commented on June 10, 2024

From [email protected] on May 13, 2009 06:02:15

Can you elaborate on how to reproduce the error?

from pylast.

hugovk avatar hugovk commented on June 10, 2024

From nichte on May 13, 2009 06:28:20

Sorry :)

It's basically the same as what sabailiez mentioned:

When I try to download data for anything that has unicode characters I get:

File "D:\projects\mainstream_meter\pylast.py" in _download_response

  1.      data.append('='.join((name, urllib.quote_plus(self.params[name]))))
    
    File "C:\Python25\lib\urllib.py" in quote_plus
  2.     s = quote(s, safe + ' ')
    
    File "C:\Python25\lib\urllib.py" in quote
  3. res = map(safe_map.**getitem**, s)
    

Exception Type: KeyError at /user/Luthya/12month/
Exception Value: u'\xe9'

It works after changing line 224 to:
data.append('='.join((name, urllib.quote_plus(self.params[name].encode('utf-8')))))

from pylast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.