Hey guys,
I'm having some problems trying to convert stuff to access an external api.
The site I'm using has access by querying with a title formatted as UTF-8, however I can't seem to get the right results in php.
I have been messing around all day, and have made no progress basically.
What I have so far, is
urlencode(utf8_encode($game))
This half works, but not fully
What I'm trying to get it this
Game = The Incredible Hulk™, Actual Result = The+Incredible+Hulk%99, Desired Result = The+Incredible+Hulk%E2%84%A2
Game = Unreal Tournament® 3, Actual Result = Unreal+Tournament%C2%AE+3, Desired Result = Unreal+Tournament%C2%AE+3
Game = LEGO® Indiana Jones™, Actual Result = LEGO%C2%AE+Indiana+Jones%C2%99, Desired Result = LEGO%C2%AE+Indiana+Jones%E2%84%A2
As you can see, it works for some symbols, but not others. I've been searching, and according to the letter database, the desired does match up for what the UTF-8 codes should be, I'm just not getting them.
I'm pulling the game names out of a mysql database, but I have also tried it as a constant, and still have the same problem.
Can anyone give any suggestions asto why this is happening, or what might make it go right?
Cheers
Arkane