Cyrillic character names issue

Hi, trying the API “Character Profile API” at https://develop.battle.net/documentation/world-of-warcraft/profile-apis

with the character Гюрбюрлайф

the link becomes:

https://eu.api.blizzard.com/profile/wow/character/howling-fjord/%D0%93%D1%8E%D1%80%D0%B1%D1%8E%D1%80%D0%BB%D0%B0%D0%B9%D1%84?namespace=profile-eu&locale=en_GB&access_token=XPTO

So it’s converting the character name but the API returns:

{
  "code": 404,
  "type": "BLZWEBAPI00000404",
  "detail": "Not Found"
}

Calling using code to:

https://eu.api.blizzard.com/profile/wow/character/howling-fjord/Гюрбюрлайф?namespace=profile-eu&locale=en_GB&access_token=XPTO

I get the same 404 not found. How to search for characters with Cyrillic characters?

First of all, you should not post any access tokens publicly, so please consider removing them from your post.

Second, you need to provide the name of the character in lowercase (refer to the documentation). I Just tried it with my own access token and got a valid response.

Ouch, you right, removed :expressionless:
Ah, I’m placing lower but had to change to other function to support those characters, silly me.
Thanks :slight_smile:

I know this is an old post but I just had a similar issue and only just found out (I’m not a professional coder!) that the php function strtolower() doesn’t work properly with non-Latin scripts, and I had to start using mb_strtolower() instead. Otherwise you end up querying with a capitalized Cyrillic name and of course it fails :confused:

Just noting that here in case anyone else has trouble and finds it in search.

1 Like