Querying player name with Latin characters in php


#1

I’ve been tying to query the Profile API
in PHP and having troubles with the following name;

us.api.blizzard. com/profile/wow/character/bleeding-hollow/Ørígínâl?namespace=profile-us&locale=en_US&access_token=

How would you go about querying that name? Any attempts I make result in a 404.


#2

I’ll work on the PHP library later today, I’ll let you know if I find anything useful.


#3

I think I found the problem, strtolower does not affect the capital Ø, for that you need to use mb_strtolower when creating the slug.


#4

Thanks! Using that in combination with rawurlencode gives the desired results :+1: