Last modified: 2014-10-05 04:06:42 UTC
Example: http://lyrics.wikia.com/api.php?action=lyrics&func=getSong&artist=MC%20Solaar&song=J%27Connais%20Mon%20R%C3%B4le should return these lyrics: http://lyrics.wikia.com/MC_Solaar:J%27Connais_Mon_R%C3%B4le ..But it doesn't. Because the API returns a link to http://lyrics.wikia.com/MC_Solaar:J%27Connais_Mon_R%C3%83%C2%B4le, my guess is that the "ô" character is at some point converted to "%C3%83%C2%B4" instead of "%C3%B4". Cheers
https://en.wikipedia.org/w/api.php?action=query&prop=info&titles=J%27Connais_Mon_R%C3%B4le <?xml version="1.0"?> <api> <query> <normalized> <n from="J'Connais_Mon_Rôle" to="J'Connais Mon Rôle" /> </normalized> <pages> <page ns="0" title="J'Connais Mon Rôle" missing="" contentmodel="wikitext" pagelanguage="en" /> </pages> </query> </api> I'm presuming this really isn't a core MW bug. As you can see, on Wikipedia (at least), the input matches the output. I've no idea what action=lyrics is. I'd suggest you file a bug with Wikia if you haven't already
> > ..But it doesn't. Because the API returns a link to > http://lyrics.wikia.com/MC_Solaar:J%27Connais_Mon_R%C3%83%C2%B4le, my guess > is that the "ô" character is at some point converted to "%C3%83%C2%B4" > instead of "%C3%B4". > > Cheers Its treating the ô character as if it was iso 8859-1 and converting to UTF-8, however the text is already UTF-8 so in essence its double encoding ( %C3 is how you say à in UTF-8, where %C383 is how you say à in UTF-8. Similarly %B4 is how you say ´ in ISO 8859-1, but %C2%B4 is how you say ´ in UTF-8. Thus if the API module thinks %C3%B4 is in ISO 8859-1, then it will convert it to %C3%83%C2%B4) Anyways, not a problem with the MediaWiki API. You need to file a bug with Wikia.