RiotGames / developer-relations

Riot Games Developer Ecosystem Bug Reporting
http://developer.riotgames.com
744 stars 44 forks source link

Correct summoner name #93

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hi! I have an issue with api summoner name. When im trying to get summoner profile through nickname (for example ÉxıłeÐ) am always getting an error "Request path contains unescaped characters". IDK how to replace this special characters. When im typing normal nickname with common characters all is fine. Somehow opgg is doing well with this issue. Help me pls. Ty.

Querijn commented 5 years ago

Hey there!

This section is mostly with bugs and issues that you have encountered. Your post here does not contain either of these, so I suggest in the future you hop on to the discord. Since it is a fairly common question, you can even find it if you search on Discord.

You need to escape your characters. The function name for these depend on your language of choice: Javascript has encodeURI or encodeURIComponent for instance. PHP has urlencode

You can probably find the one for your language of choice with searching any of the terms mentioned above.

OP.GG does it well because:

  1. They escape their characters if you search for it on the website
  2. Chrome and other common modern browsers escape characters when you enter them into the address bar.
ghost commented 5 years ago

Thx :)

ghost commented 5 years ago

Delete this issue pls!

Querijn commented 5 years ago

Press close