Encoding with url and api
        Posted  
        
            by 
                user2950824
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user2950824
        
        
        
        Published on 2013-11-03T21:50:59Z
        Indexed on 
            2013/11/03
            21:53 UTC
        
        
        Read the original article
        Hit count: 304
        
So I have this web app set up and running and it works fine for any username that you request, but when i try http://mrcastelo.pythonanywhere.com/lol/euw/Nazaré, it simply doesnt work - the error that I get on the server is the following:
iddata= getJSON(urllolbase+region+urlid+username) #SummonerID
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128)
It is annoying me greatly, I've tried some other threads but none of them came to a fix. The api that I am using (www.legendaryapi.com) does accept this because this works.
Any idea on how to fix this?
© Stack Overflow or respective owner