Last modified: 2010-05-15 16:03:22 UTC
Currently, the API just uses the web server's default encoding, while MediaWiki uses $wgOutputEncoding, which can cuase problems with frameworks that expect the whole wiki to use the same encoding.
Should be always speaking UTF-8... $wgOutputEncoding is pretty much obsolete, and probably should be removed. (There may need to be some checks to see what's interacting with the edit encoding, which I think is only being used for the Esperanto x-coding conversion.)
Is there a recommended way to get the API to use UTF-8 then? Like adding a heading line into LocalSettings.php or .htaccess?
The charset is specified along with the Content-Type header in ApiFormatBase.php.